Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SessionBean to SessionBean call  RSS feed

 
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...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!