wood burning stoves 2.0*
The moose likes Web Services and the fly likes How many web services I can have in a single ejb, only one or many? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How many web services I can have in a single ejb, only one or many?" Watch "How many web services I can have in a single ejb, only one or many?" New topic
Author

How many web services I can have in a single ejb, only one or many?

D. Formenton
Ranch Hand

Joined: Mar 20, 2008
Posts: 47
Hi all

my question come from the fact that I am unable to add a second web service to the same ejb.
If I try it, the second web service work fine, but the first one stop to work. Is it correct?

If I make two distinct ejb, one for each web service, all work fine. Is this the correct way?

I use Netbeans 6.7.1 and JDK 1.6_14.

Than you.

Domenico
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Yes, you are correct - one web service per EJB, at least if you are considering JAX-WS.
If you look at the API documentation for the @WebService annotation, you will see that:
Marks a Java class as implementing a Web Service, or a Java interface as defining a Web Service interface.

Please refer to chapter 3 in the JAX-WS 2.1 Specification for details.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How many web services I can have in a single ejb, only one or many?
 
Similar Threads
Session beans and configuration properties
websphere integration developer
SCDJWS-REST/SOAP Web services
I can create only one web service in EJB module. Why?
Servlets vs Web Services