Khurrum Abdullah wrote:
> Hi,
> I have used connection.setAutoCommit(false) but when i call
> homeinterface.create() in my client program, the results get commited
> after the method call . I have tried the same code in weblogic but it
> works fine.
JBoss already sets autocommit off on all connections. The reason it's
being committed is that a transaction is created when you call into the
create method and is being committed after that method is processed.
This is in accordance with the spec.
To fix this, either use Client managed transactions (not recommended,
and I believe available only on the 2.3 branch of JBoss). Or put your
entire transaction into a stateless session bean's method. This way,
your client will call into the stateless session bean, JBoss will create
a transaction around it, your transaction will be processed, then JBoss
will commit the transaction.
I have no idea why that worked in weblogic - it really shouldn't have.
-danch
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user