If there is a class which returns a collection that is defined as a
proxy collection in repository.xml, should it return this collection
after persistence broker is closed (by pb.close() ).
 
I have a class Role and there is a method getUsers(). getUsers() returns
a collection and I define it as a proxy collection in repository.xml,
After querying and displaying role name by role.getName() I close
persistent broker. After that I try to get user by getUsers() and it
still returns the collection. ??
 
Should not it give exception because persistence broker is closed or
released this call needs a connection to materialize the collection ??
 
Thank you,
 
Muhammad Aamir
Senior Software Engineer
Karachi International Container Terminal
E-mail: [EMAIL PROTECTED] 
Website: http://www.kictl.com
 

Reply via email to