[jboss-user] [JBoss Web Services] - Is it possible to create JBoss web service without EJB?

Igor Urdenko do-not-reply at jboss.com
Mon Jul 30 14:29:46 EDT 2012


Igor Urdenko [https://community.jboss.org/people/ingvarwolf] created the discussion

"Is it possible to create JBoss web service without EJB?"

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

--------------------------------------------------------------
Hello,

I have a question regarding webservice creation.

I have an EJB which has a lot of methods that use heavy objects as a parameters. I tried to create a webservice from the EJB but found that I have also to change all classes that define the methods parameters. I cannot completely recreate these classes. So, I decided to create a web service class which will have methods with simple-type parameters. This web service will create correct parameters and call EJB methods.

I tried to create a simple web service adding @WebService annotation to the class and @WebMethod to its methods but I cannot deploy this web service to JBoss. There are no error but my web service is not displayed in JMX console.

So, the question is - is it possible to create and deploy a simple web service based on POJO, not an EJB? If yes, then how?

I am using JBoss 4.2.3.GA with default configuration.

Sincerely,
Igor Urdenko
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120730/b38136d7/attachment.html 


More information about the jboss-user mailing list