JBoss Community

Is it possible to create JBoss web service without EJB?

created by Igor Urdenko in JBoss Web Services - View the full discussion

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

Start a new discussion in JBoss Web Services at Community