• 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
 
What are you doing? You are supposed to be reading this 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!