• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful EJB as WebService

 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to EJB. Could anyone help me for below case:


SEI as below:



SIB as below:




But I am getting compilation error as:
If a class is part of ejb-jar and annotated @WebService, then it must designated as Singleton or Stateless session bean. Someone please explain.

 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2785
175
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Stateful Session Bean cannot expose a WebService (only a Singleton Session Bean or Stateless Session Bean)
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Got it.

Thanks Frits.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!