Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking method within same EJB

 
deepak yadav
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 methods in my EJB, testA and testB. I have to invoke testB from testA and that I can do in 2 ways:
i) directly invoke testB from testA, like a class method
ii) create a remote object of this EJB and then invoke testB on this remote object
Is there any difference between the two in the way
o transactions are handled
o underlying security framework applies restriction
o any other thing apart from probably less overhead in (i)
thx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic