Hi all,
in my project i use Entity EJB to insert/update and remove data from the
database.
To collect dat i execute some SELECT query which use the Connection from a
datasource.
Well, in a specific situation i have, in the same mthod:
- Insert some data
- Get, using a SELECT query, some data plus the data i have just inserted
Well, i noticed that if i execute the SELECT query i can't have the data i have
just insereted using the Entity.
Well, how can i fix this problem out ?
I know that the Entity bean locks the table and doesn't see you the data before
the end of the transaction.
Is there anyway to get the data ?
Do i have to change the transaction type of the EJB ?
Cheers.
Stefano
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877193#3877193
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877193
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user