• Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote methods

 
prema venkat
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Please clarify my doubt.
If i am having 2 business methods in remote interface of EJb and i am implementing(definition) only one in the bean class but i am not getting any error.

Please tell me the relation between remote interface and bean class.For my understanding it should have both method in the bean class.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB3 spec (section 4.6.2) says:

The class must implement the bean�s business interface(s) or the methods of the bean�s business interface(s), if any.


So your bean class should implement both the methods in the interface.

i am implementing(definition) only one in the bean class but i am not getting any error.

Where are you checking the error for? Are you looking in a IDE or are you checking during deployment of the beans on the server? And does your bean class "implement" the business interface or are you using annotations or deployment descriptor to specify the business interface for the bean?
[ November 05, 2008: Message edited by: Jaikiran Pai ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!