如何开发云应用程序的方法
我们启动一个新项目,该项目应该是一个云可扩展应用程序。
目前首选的方式是 Java、Tomcat 作为应用程序服务器,以便能够将其部署到 Amazon Ec2 中。 Web 服务应该可以通过 SOAP (WSDL) 进行访问,并且 Web 接口应该使用 GWT 进行设计,对于我们计划使用 Spring 的服务器结构,以及用于将业务模型存储到数据库中的 Data Hibernate。
有没有人为 eclipse 准备好一些项目,其中准备了这样一个带有(java ee axis1 java comments for webservices, gwt, spring and hibernate)的项目?
或者如何启动或设置/构建这样一个项目的最佳方式才不会以错误的方式运行!?
所有的帮助和提示都会很棒。
谢谢并问候
汤米
We start a new project which should be a cloud scalable application.
The prefered Ways is right now Java, Tomcat as a Application Server to be able to deploy it into the Amazon Ec2. The Web Service should be accessable over SOAP (WSDL) and an WebInterface which should be designed with GWT, for the Server Structure we plan to use Spring, and for the Data Hibernate to store the business modell into the database.
Has anybody some ready projects for eclipse, where such an project with (java ee axis1 java annotations for webservices, gwt, spring and hibernate) is prepared?
Or how is the best way to start or setup/structure such an project to don't run in an wrong way!?
All Helps and Tips would be great.
Thanks and greetings
Tommy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Google App Engine (GAE) 是可扩展网络架构的另一个潜在解决方案。这里最大的区别是你无权访问底层服务器,但 Google 确实提供了许多 API 来允许你做你可能需要做的事情。 (例如没有 JDBC 时的持久层)
GAE 可以快速、轻松地启动并与 Eclipse 一起使用,因为它们有一个很好的 Eclipse 插件套件(也许还有 IntelliJ,但我不确定)。它还与 GWT 集成得很好。
最后一点,如果您愿意,可以使用 Python 中的 GAE 编写代码。
Google App Engine (GAE) is another potential solution for a scalable web architecture. The biggest difference here is that you do NOT have access to the underlying server, but Google does provide many API's to allow you to do what you may need to do. (Such as a persistence layer in the absence of JDBC)
GAE can be quick and easy to start up and use with Eclipse, as they have a nice plugin suite for Eclipse (maybe IntelliJ too, but I don't know for sure). It also integrates very well with GWT.
One last note, you can do code with GAE in Python, if you so desire.
您的帖子中有几个问题。我对“预装”Eclipse 项目模板的看法:我想我过去见过类似的东西,但不记得在哪里。事实上,我不建议采用这种方法,因为:
Several questions in your thread. My opinion on "pre-canned" eclipse project templates: I think I've seen something like this in the past, but can't remember where. Indeed, I do not recommend to follow this approach, because:
构建在 Amazon AWS 上运行的应用程序实际上与构建在其他任何东西上运行的应用程序相同。当您启动机器实例时,它实际上只是一个 Linux(或 Windows)盒子,您可以以任何您想要的方式登录和管理。遗憾的是,云并不是可扩展性方面的灵丹妙药,您仍然应该了解如何使您的应用程序可跨多个服务器进行可扩展的最佳实践。
Amazon 确实提供了其他服务来简化扩展,例如弹性负载均衡器和创建自定义 AMI 的功能,以便您可以立即启动新实例,但您仍然需要弄清楚您希望应用程序如何运行规模。正如 chedine 所说,我可能会选择 REST over SOAP,但我不知道您的项目经理对您施加了哪些限制。
最后, home 关于升级和理解应用程序的观点很好,我建议阅读 spring/hibernate 文档并按照您需要的方式配置您需要的内容。这似乎是一项巨大的前期投资,但如果您计划将您的应用程序基于该技术,那么这是值得的。
Building an app to run on Amazon AWS is really the same as building it to run on anything else. When you start your machine instance, at that point it's really just a linux (or windows) box that you can login to and manage in whatever way you want. Sorry to say the cloud isn't a magic bullet on scalability, you should still look at best practices on how to make your app scalable across multiple servers.
Amazon does provide the other services to make scaling easier, like the elastic load balancer and the ability to create custom AMIs so that you can start a new instance in a heartbeat, but you'll still have to figure out how you want the app to scale. As chedine said, I would probably go with REST over SOAP, but I don't know which constraints have been put on you by your project manager.
Finally, home's points on upgrading and understanding your app are good, and I would suggest going through the spring/hibernate documentation and configuring what you need, the way you need it. It might seem like a heavy investment up front, but well worth the effort if you plan to base your app on the technology.