The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: referencing isolated session cache object from shared session cache object

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0
rajbirb

Posts: 2
referencing isolated session cache object from shared session cache object
Posted: Apr 7, 2008 10:32 PM
 
  Click to reply to this thread Reply

Can anybody tell me why Toplink Essentials chose not to allow shared objects in the parent server session's shared session cache to have a reference to isolated objects in an isolated client session's isolated session cache?

Consider this scenario:
A Customer entity has a OneToMany relationship with CustomerInventory entity.
I know my Customer details cant be modified from outside but customer inventory can be.
So i decide to make my Customer entity use shared session cache whereas CustomerInventory i want to fetch from the datasource always.

But Toplink Essentials doesn't allow me this behavior.

Thanks in advance.




 XML java.net RSS