Hi

I have question related to entity beans and longterm connections. From
Sun's documentation
(http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Database2.html#11316) :

"After instantiating an entity bean and moving it to the pooled stage, the
EJB container invokes the setEntityContext method. Conversely, the EJB
container invokes the unsetEntityContext  method when the entity bean
leaves the pooled stage and becomes eligible for garbage collection. To
retain a database connection for its entire lifespan, an entity bean
connects in the setEntityContext method and disconnects in the
unsetEntityContext method."

It works with Sun's reference implementation; however, it doesn't work
with JOnAS. I must obtain a database connection from the DataSource object
for each method that performs database access. Is it simply an unsupported
feature or I should consider JOnAS' approach as effective as having a
persistent database connection for each entity bean? I just want to be
sure that managing a database connection for each method is the best way 
to develop bean-managed persistence entity bean with JOnAS.

Thanks!


[francis@chicgeek ~]$ od -c -N 120 /dev/random > ~/.signature

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to