2 Replies Latest reply on Nov 25, 2002 11:46 AM by brendanl

    xaRes not enlisted

    alextair

      I'm trying to find a BMP entity bean from a stateful session bean. But I get the following error when I call the findByPrimaryKey() method.

      java.rmi.ServerException: xaRes not enlisted; nested exception is:
      java.lang.IllegalArgumentException: xaRes not enlisted

      Also the logs show up this error:

      java.rmi.ServerException: disconnect(ManagedConnection mc: null, Object c: org.jboss.resource.adapter.jdbc.local.LocalConnection@69493a) called with unknown managed connection; nested exception is: java.lang.IllegalArgumentException: disconnect(ManagedConnection mc: null, Object c: org.jboss.resource.adapter.jdbc.local.LocalConnection@69493a) called with unknown managed connection

      Anyone know how I can fix this.

      Thanks!
      -Alex

        • 1. Re: xaRes not enlisted
          tfk257

          I had the same problem also.

          • 2. Re: xaRes not enlisted
            brendanl

            I'm having the same trouble. It only turns up when I try to use a declarative transaction setting to something other than Required. I'm using JBoss3.0.0 and IBM DB2.

            What gets me is that I'm not trying (deliberately) to use an XADataSource, so I can't understand why I'm getting an xaRes problem. I guess it's a configuration thing, but I can't figure out why it works for Required but not for RequiresNew.

            Any advice? Anyone?