In the deployment-descriptor of your SessionBean you either declare wether to use container managed or bean managed transaction demarcation.
In case of container managed transaction, check if the trans-attribute is e.g. "Required".
In case of bean managed TX, programmatically obtain the UserTransaction object and start the transaction.
I am using CMP. I use ant to create the descriptors. I found that
this is in the declaration. I believe this is like this because we are using a Oracle database. How can I get this to work?
Have you resolved this problem?
I meet the same problem.
Make sure that both beans ( the session bean and the entity bean) declare that a transaction is "required". Then all of the 'internal' CMP entity bean operations should run in the same transaction of the 'outer' session bean. The container will create a transaction before invokation of your session bean method and will reuse this transaction for all embeded entity operations.
I will upgrade to JBoss 3.2.7