Steffen Krause [https://community.jboss.org/people/kimba74] created the 
discussion

"Re: Newbie Question"

To view the discussion, visit: https://community.jboss.org/message/714049#714049

--------------------------------------------------------------
Hi there,

Yes, there is also the possibility of implementing WebServices as POJOs (Plain 
Old Java Objects). What you would do is: Create a regular Java Class and 
annotate it with the exact same annotations used for the EJB approach. The 
major difference between the POJO and the EJB approach is that POJOs have no 
definied life-cycle in an Application Server. In other words, JBoss does not 
know that this POJO is in fact a WebService. To make JBoss aware of that you 
would have to configure your WebService POJOs as Servlets inside a WAR's 
web.xml. Upon deploying this WAR file JBoss will notice that the Servlets you 
have configured are actually WebServices rather than Servlets and will deploy 
them accordingly.

Here is a guide for JAX-WS implementation using POJOs:

 https://docs.jboss.org/author/display/JBWS/JAX-WS+User+Guide 
https://docs.jboss.org/author/display/JBWS/JAX-WS+User+Guide
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/714049#714049]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to