This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking method within same EJB

deepak yadav
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)
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic