Hi all,

i have the following situation.
I call a method of INSERT, using an Entity CMP Bean, inside a method of a 
Session Bean.
In the same metod i execute a SELECT query.
To execute the SELECT query i get a Connection from the container.
After the execution of the query i notice that i don't have the record whichi 
have insert before the SELECT.
Probably because the transaction is not terminated yet.....so how can i do to 
get the value just inserted ?
I repeat :
 
      Method of the SESSION BEAN

                  - INSERT with an Entity
 
                  - GET a Connection

                  - EXECUTE a SELECT

                  - CLOSE THE CONNECTION

     Close of the method of the SESSION BEAN  

Is it a good solution to use the EJB query LANGUAGE with the Entity instead of 
execute a SELECT query ?
Cheers.

                       Stefano
    
   



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876449#3876449

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876449


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to