aspose file tools*
The moose likes Web Services and the fly likes Learning WS using JBOSS and following sun JEE5 tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Learning WS using JBOSS and following sun JEE5 tutorial" Watch "Learning WS using JBOSS and following sun JEE5 tutorial" New topic
Author

Learning WS using JBOSS and following sun JEE5 tutorial

naveenkumar kumar
Greenhorn

Joined: Apr 15, 2010
Posts: 2
Since few days I have been reading various tutorials and trying to run samples using Eclipse EUROPA, JOBSS 4.2.2GA. I was able to run a simple sayHello webservice and call it from a different web application (servlet) running on different jboss instance. Next I wanted to follow Sun JEE5 tutorial for samples, I tried running samples related to JAXB, but the samples seems requires Glassfish reference Implementation (as sample requires jaxb binding compiler XJC).
My questions are,
(1)Are webservice RI (tool to generate stubs from wsdl, jaxb compiler etc) tools part of Application server (which I am using)? Isn’t any generic tool provided by JEE5 SDK?
(2)If there is no webservice RI tool provided with JEE5 SDK then, do I need to learn App Server (vendor) way of developing webservices (ie learn JOBSS WS tools and deployment technique)?
(3) I want to learn JAXB, SAAJ, and WS security, are these technologies more bound to vendor Application Server and I must follow App server specific tutorial to learn these topic?
(4) currently I am using JBOSS, is it good enough or to learn advance topic mentioned above do I need better Application server (Web Sphere etc)?
(5) If I learn JBOSS ws development, how difficult or different it would be to learn ws development for other App servers?
(6) best tutorial & App Server to learn ws?

Please answer these questions. I want to work hard & sincerely and learn webservices thoroughly.
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 539
    
    7
Hi,

(1)Are webservice RI (tool to generate stubs from wsdl, jaxb compiler etc) tools part of Application server (which I am using)? Isn’t any generic tool provided by JEE5 SDK?
(2)If there is no webservice RI tool provided with JEE5 SDK then, do I need to learn App Server (vendor) way of developing webservices (ie learn JOBSS WS tools and deployment technique)?

Both JAXB and JAX-WS are JavaSE standards since Java 6. They're available in the JDK itself. JDK/bin/xjc is the JAXB compiler; JDK/bin/wsgen and wsimport are the JAX-WS tools.
IMO, it's always important to learn the runtime environment. They may conform to the standards, but they may offer more functionality, or have frustrating caveats which you don't want to find out one day before your product release

(3) I want to learn JAXB, SAAJ, and WS security, are these technologies more bound to vendor Application Server and I must follow App server specific tutorial to learn these topic?

These are standardised APIs, so the interfaces, methods, semantics and so on are the same from vendor to vendor. However, they need configuring to work, and this is specific to each runtime environment. Learn the API in one environment; but try out deployments in multiple to learn the nuances of configuring in each. Also, WS standards are many and constantly changing, due to political reasons. So be sure to use the latest tutorials, JDK versions, server versions.

(4) currently I am using JBOSS, is it good enough or to learn advance topic mentioned above do I need better Application server (Web Sphere etc)?

JBoss and Glassfish are more than enough for learning. In production use, factors like scalability and performance may require evaluation of other runtime environments too.

(5) If I learn JBOSS ws development, how difficult or different it would be to learn ws development for other App servers?

Configuration is always a headache because it's not standardised. It's quite different in different environments. Complications arise deployment instructions have to make assumptions about the existing environment setup, for simplicity. It's difficult to write instruction checklists taking into account every eventuality - best is just dive in and make google your troubleshooting guide. I usually document my findings.

(6) best tutorial & App Server to learn ws?

There are many (too many!!) competing standards, technologies and frameworks. What you learn in one may not help in another. But everywhere, the basics are the same - SOAP, WSDL, JAX-WS, capturing SOAP messages, document styles - which you'll need in every environment. So start with the basics.
Then start to evaluate the frameworks and runtime environments. Also, WS-* standards are considered overkill in certain situations and people prefer RESTful web services; so it's good to know JAX-RS too.

I had found this article Making sense of WS standards very informative (note that this itself is ~3 years old now, so question everything you read).

Good luck with your knowledge building!
naveenkumar kumar
Greenhorn

Joined: Apr 15, 2010
Posts: 2
Hi Karthik,
Thank you so much for answering all my questions. I read all answers several times. Here is what I Inferred. Please correct me if I am wrong.
• It’s wise to start with latest versions (JDK 1.6 rather than JEE5, so I will switch to JDK 1.6 as well as JBOSS 5.0)
• Will learn the basics first, as well as since JBOSS is good enough I will first build my competency using JBOSS, once I am confident about WS I will move on to learning deployment and configurations for other App Server Runtime Environment.

I will definitely go through the link you specified in your answer. I really appritiate your help, It really helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Learning WS using JBOSS and following sun JEE5 tutorial