Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a Webservice based on Java EE 6 using Maven 3 on Eclipse IDE

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?

like image 896
elfwyn Avatar asked Apr 08 '26 21:04

elfwyn


1 Answers

This is a good Maven tutorial. They use Netbeans but I suppose you could just use Eclipse instead. Hopefully it gets you started

like image 165
Jeroen Peeters Avatar answered Apr 11 '26 22:04

Jeroen Peeters



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!