Hi there,

I'm running into a problem with transactions not committing when calling an
update from a BMP entity bean.

Here my info:

Running SQLServer 7 with Weblogic drivers.

ejb-jar.xml:
    <entity>
      <ejb-name>IDGen</ejb-name>
      <home>com.trilogy.tbs.util.IDGenHome</home>
      <remote>com.trilogy.tbs.util.IDGen</remote>
      <ejb-class>com.trilogy.tbs.util.IDGenBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      <reentrant>False</reentrant>
      <resource-ref>
        <res-ref-name>MSSQLServer</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
    </entity>
    ...
    <container-transaction>
      <method>
        <ejb-name>IDGen</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>

relevant parts of bean class:

I have a business method on the bean, nextID(), which just increments a
data member. JBoss correctly calls ejbStore after that method, and the
update is occurring properly (I can see the SQL calls generated using
SQLServer Profiler), but nothing is committed and the transaction is left
open.

Right now I'm just calling the nextID method from a test client with no
transaction context of its own.
Also, note that INSERT statements are correctly committed (but these insert
statements are in the ejbCreate method, so that may be for a different
reason)

I saw a posting with a similar problem in the archives, but couldn't find a
resolution.
Alex Devine
Trilogy Development
office: 512-532-5186  |  cell: 512-736-6612  |  ICQ: 62256371



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to