Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Quick Question regarding Entity bean

 
Debanjana Dasgupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a question.
Say I have 2 entity beans A and B
I have a object C which is a dependent object of entity bean A. So A has 1 to many relationship with C.
Is it possible to have a reference to B inside dependent object C?
Thanks
Debanjana
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Its possible to have a reference of B in C which is dependent on A.From B don't try accesing A's business methods as it will end up in re-entrant loop which is not advisable.
Cheers
Geeta
 
Debanjana Dasgupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Geeta
That helps.
Debanjana
 
Manish Kamat
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all.i'm currently working on ejb but not yet come across re-entrant situation.can anyone please explain me what do you exactly mean by re-entrant by giving a good practical example? and what can be its consequences???
thanks in advance...
[ April 21, 2003: Message edited by: Manish Kamat ]
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re-Entrant Means Thread Safe.It will be taken care by the container..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!