Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using the @Remote(InterfaceName) on a sessin bean

 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I know that you can use the @Remote annotation as a session bean instead of implementing the interface, so for example, and assuming that all classes are in the default package.

business interface


normally you implement the interface in your sessin bean like this


in addition you could do it in another way which is like this:


my question is when i create the session bean using the last method, does the BusinessInterface still have to be annotated with the @Remote annotation or it could be just a plain interface, like this:



I suppose the answer is that i don't need to annotate it, could I have some confirmations ?
 
Deepika Joshi
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are correct.
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepika.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic