• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
reply
    Bookmark Topic Watch Topic
  • New Topic