• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Remote Business interface for a bean

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the definition of @Remote annotation. It takes an array of Class object as argument. So, Is it possible to have multiple remote business interfaces for a bean? E.g.



Thanks
Tridib
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little correction. The code should be

 
Lawrence Johnbosco
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes it is quite possible in EJB 3.0. Not only that, the SessionContext interface provides couple of methods related to that -- one useful method will be getInvokedBusinessInterface which allows the bean to determine the business interface used by the client for invoking the current method.

Hope this help.

Regards..Lawrence J
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see an example in "Mastering EJB 3.0", ch.8 p.201
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic