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

SessionBean to SessionBean call

 
aadhar sharma
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a couple of session beans how can i use the methods of one session bean in the other.

a)can i directly create the instance of one sessionbean class into another
and access it methods.

b)or i need to call it using the interface.

c) or i need to create a common class where i can add the buisness logic
and instantiate that class

d)or if theres some other way to do the above

e)which of them is the best or the worst option and why .

Thanks and Regards

Aadhar Sharma
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our EJB forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic