Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

weblogic6.1 oracle9I oci driver

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi All
When a select query is run in entity bean with weblogic6.1 oracle 9I Oci Xa driver the following error is displayed .. but this error is not consistent .. only first time the error is displayed

java.sql.SQLException: Not in a transaction
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)

Do any one have solution for this .

Thanks In Advance

Regards
Chandra babu naidu
 
When you use XA datasource you should always be in a Transaction context to open a Connection. Hence change your code such that you open the connection in transaction context. This will solve your Problem

Dhirendra M.S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top