Are you somehow sharing a connection handle between threads? that is the usual cause of this problem. One way to cause this is to get and hold a connection handle in a static method in a utility class.

david jencks
On Thursday, January 16, 2003, at 12:10 PM, David Ward wrote:

I am getting the following error using jboss-3.2.0RC1_tomcat-4.1.18, JDK 1.4.1_01 hitting Oracle 9.2.0.1.0 (with initjvm), using the matching thin jdbc driver. All requests go through a servlet that wraps everything in a JNDI-looked-up UserTransaction.

"Could not enlist in transaction on entering meta-aware object"

Here is my oracle-xa-ds.xml:

<datasources>
<xa-datasource>
<jndi-name>MyDS</jndi-name>
<track-connection-by-tx>true</track-connection-by-tx>
<managedconnectionfactory-class>
org.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnectionFact ory
</managedconnectionfactory-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@foo:1521:bar</xa-datasource-property>
<xa-datasource-property name="User">user</xa-datasource-property>
<xa-datasource-property name="Password">password</xa-datasource-property>
</xa-datasource>
</datasources>

I changed transaction-service.xml to pad=true:

<mbean code="org.jboss.tm.XidFactory" name="jboss:service=XidFactory">
<attribute name="Pad">true</attribute>
</mbean>

Any ideas?

Thanks,
David




-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to