-
1. Re: A CMR collection may only be used within the transction
schmidts Jun 3, 2005 4:34 PM (in response to thepriz)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. -
2. Re: A CMR collection may only be used within the transction
thepriz Jun 29, 2005 2:08 PM (in response to thepriz)I am using CMP. I use ant to create the descriptors. I found that
* @ejb.transaction
* type="Required"
*
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? -
3. Re: A CMR collection may only be used within the transction
blackandwhite Jul 29, 2005 9:19 PM (in response to thepriz)Hello thepriz,
Have you resolved this problem?
I meet the same problem. -
4. Re: A CMR collection may only be used within the transction
schrouf Aug 1, 2005 3:29 AM (in response to thepriz)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.
Regards
Ulf -
5. Re: A CMR collection may only be used within the transction
blackandwhite Aug 2, 2005 1:30 AM (in response to thepriz)Thanks Ulf.
I will upgrade to JBoss 3.2.7