• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing Remote Interface by Bean  RSS feed

 
RaghuB KK
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens If my bean implements both Sessionbean and remote interfaces?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your bean class shouldn't actually implement the component interface. Remember that the methods in your component interface should throw RemoteException, but the bean class methods should not. (The bean class could also be being used for local -- why would a local bean throw a RemoteException, right?).
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The standard work-around for this is to use a Business Interface.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!