Hi ,
I'm using a BMP Entity bean with jboss and I'm using the connection pool to
get a connection to an Access database on each method implemented by my bean
including the ejbStore.
Here is the pseudocode that I'm using:
1) get connection from the pool
2) print the connection's autocommit mode on the system.out
3) execute an update sql statement
4)invoke context.setRollBackOnly()
The ejbStore has a transaction attribute set to REQUIRED.
Now, I get a RollBackException when I try to execute the rollback and to my
opinion the reason for this is that the autocommit mode of the connection
that I get from the pool is set to 'true', which means that there is no way
to roll back what the update sql statement has done and there is even no
point in executing the rollback since there is no transaction started.
The problem is that acourding to the sun's documentation regarding the j2ee
BMP entity beans I cann't change the connection's auto commit mode from
within the bean.
My question is - am I doing something wrong or there is a bug in the jboss
somewhere?
Regards,
Kamen
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]