Hi , I m using Transaction management in EJB. i set the attribute as Required and Container Managed transaction. Internaly 2 methods are call in EJB
First one insert row in database and second method read some data from row inserted . But Data is not commited in database till the transaction not get completed . in second method i m getting error As The data not present in database .
please help me in this how to read the data also managing the transaction.
Set the transaction isolation level as [TRANSACTION_READ_UNCOMMITTED]. It is used to read uncommited values ina transaction.
If you are not laughing at yourself, then you just didn't get the joke.
Gaurav Wankhade
Greenhorn
Joined: Jul 28, 2007
Posts: 4
posted
0
Originally posted by Arun Kumarr: Set the transaction isolation level as [TRANSACTION_READ_UNCOMMITTED]. It is used to read uncommited values ina transaction.
Hi Arun Thanks For your Reply
I set the isolation level in weblogic-ejb-jar.xml as follows
Is it working fine without the isolation level setting?
Gaurav Wankhade
Greenhorn
Joined: Jul 28, 2007
Posts: 4
posted
0
Originally posted by Arun Kumarr: Is it working fine without the isolation level setting?
Ya its working fine but not able to read the database values inserted in same transaction.
Tony McClay
Ranch Hand
Joined: May 22, 2003
Posts: 32
posted
0
I am sorry, I can not easily tell from the post. What version of Weblogic are you using? (Implied EJB version as well) Are you using KODO/OpenJPA or Hibernate?
This will help me answer your question.
Tony Sun Certified Web Business Component Developer Sun Certified Web Components Developer Sun Certified Programmer for the Java 2 Platform
Tony McClay<br />Architect / Developer, SOA and Jave Enterprise Edition 1-5<br />---------------------------------------------------------------------- <br />Sun Certified Enterprise Architect, Enterprise Edition 5 (Step 1 of 3)<br />Sun Certified Web Component Developer, Enterprise Edition 4<br />Sun Certified Business Component Developer Enterprise Edition 5<br />Sun Certified Programmer , Standard Edition 5.0
Gaurav Wankhade
Greenhorn
Joined: Jul 28, 2007
Posts: 4
posted
0
Originally posted by Tony McClay: I am sorry, I can not easily tell from the post. What version of Weblogic are you using? (Implied EJB version as well) Are you using KODO/OpenJPA or Hibernate?
This will help me answer your question.
Tony Sun Certified Web Business Component Developer Sun Certified Web Components Developer Sun Certified Programmer for the Java 2 Platform
Hi Tony , I m using weblogic 8 with service pack 2 And EJB version is 2.0 I m not using Hibernate.