• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can we call entitybean in sessionbean

 
rajas sekharra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
i want some clarification, how we can call session bean in Actionclass(In Struts) and how we can call entitybean in sessionBean. plz, response as earily as possible.

Thanks,
raja
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35719
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raja,
Welcome to JavaRanch!

You look up the home interface in the JNDI first:

Then you can call home.create() to get the actual bean.

It's the same whether you are calling from an action or a session bean.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!