Thanks Maciej for your fast response.
I'm using EJB deployed on JBoss AS 5.1 and the database engine is MySQL
and I want to be able to manage the transaction of the JBPM as a standalone transaction to be able to commit or rollback it from my bean.
but I think that it is not configured to be a standalone transaction.