• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass "this" reference in EJB?

 
Gurumurthy Ramamurthy
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have learnt somewhere that you can't pass "this" reference from one EJB to another, if we want to do, how should we do? I learnt that we have to enquire the container by callback methods...I don't remember exactly. A timely help would be appreciated.
Regads,
Guru
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use primatyket.getEJBObject
 
Gurumurthy Ramamurthy
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dude,
But I got another answer like: context.getEJBObject()
B'coz, the answer you gave would only work for Entity Bean???
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!