I don't know. There really isn't enought information here to help you. I suggest you take a close look at your transaction attributes in the ejb-jar.xml file.
Other information :
- Jboss 3.01RC1
- JDK 1.3.1_02
- ejb-jar.xml (see attachment)
- oracle-service.xml is the standard file (from docs/examples/jca)
- jdbc oracle is classes12.zip (the last from oracle technet)
In the ejb-jar:
- session-type is Stateless
- transaction-type is Bean
The target of the test is to obtain only one transaction for the two Session Bean using UserTransaction
Instead the method in the second Bean is running in one new transaction (only the operation in the first session Bean are rollbacked).
How to obtain the same transaction using Stateless Session Bean with transaction-type Bean ?
When I use transaction-type Container with trans-attribute Required the result is correct.
But if the transaction time exceedes the transaction timeout, how to catch this Exception from code ?
I suggest you ask this in the EJB forum.