在 Eclipse IDE 上使用 Maven 3 创建基于 Java EE 6 的 Web 服务
我搜索了教程,发现一些侧重于 Java EE,一些侧重于 Eclipse,另一些侧重于 Maven。所有这些都有细微的差异,这使我很难找出相似之处。
首先,我需要一个(坚如磐石)可靠的原型来创建基于 Java EE6 的 Maven 项目。有人可以推荐一个吗?
其次是构建 Web 服务的问题: 就我而言,开发基于现有的 XSD 和 Web 服务,并且需要在此基础上实施操作。简而言之:我很难找到一个起点。 大多数示例首先创建一个 bean 类并使用 Webservice 对其进行注释...
此外,我发现的示例并不关注如何访问部署的 webservice。在我看来,有一些大家都知道的神奇符号,只需注释 bean @Webservice 即可访问 Web 服务操作。 有人可以告诉我 Java EE 6 Web 服务访问 url 是如何从 Java 类派生的吗?
最后是应用程序服务器的问题。要创建第一个示例,我使用 Glassfish 3.1,但后来必须部署在 weblogic 平台上,据我所知,该平台尚不完全支持 Java EE 6。由于我不打算使用花哨的功能,我希望 WLS 10.3.4 支持相关堆栈。对此有何评论?
I have searched for Tutorials and found some focusing on Java EE, some on Eclipse and others on Maven. All have subtle differences which makes it hard for me to make out simmilarities.
First of all I would need a (rock) solid Archetype to create the Maven Project based on Java EE6. Can anyone recommend one?
Second there is the question of structuring the Webservice:
In my case the development is based on existing XSDs and Webservices and Operations need to be implemented on top of that. To make it short : its hard for me to find a starting point.
Most examples begin by creating a bean class and anotating it with Webservice...
Furthermore the examples that I have found do not focus on how to access the deployed webservice afterwards. It seems to me there is some magic notation everybody knows that allows to access the Webservices Operations just be annotating the bean @Webservice.
Can someone enlighten me on how Java EE 6 Webservices access urls are derived from the Java classes?
Lastly there is the question of the Applicaton Server. To create a first Example Im using Glassfish 3.1, but later on in would have to be deployed on a weblogic platform, wich I understand does not fully support Java EE 6 yet. Since I do not plan to use fancy features I'm hoping WLS 10.3.4 supports the relevant stack. Any comments on that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个很好的 Maven 教程。他们使用 Netbeans,但我想您可以使用 Eclipse。希望它能让你开始
This is a good Maven tutorial. They use Netbeans but I suppose you could just use Eclipse instead. Hopefully it gets you started