Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spec Page 48

 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Section 4.3.2 on Page 48 of the spec says that
The entity, it's primary key and it's remote reference survive the crash of EJB Container.


I understand for entity and it's primary key, but what about remote reference? How does that survive container crash?
 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please help explain?


Thanks,
Ankit
 
Balaji VR
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The spec states the EJBObject as Remote interface here.
 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True, it refers to the EJBObject here ... but, the actual EJBObject resides on the server side and the client only gets reference to the EJBObject, so how does the EJBObject survive the container crash??
 
Balaji VR
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you know, lot of things mentioned in SPECS should n't be interpreted as their true meaning :-) The container says, if I experience a crash, my entities are safe in persistent store. So, the client, when it refers to the entity again, I will wrap it in a bean instance (which is obviously picked up from pool), then assign an EJBObject to it and return it back!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic