Hi,
I am using WLServer 6.1. When i am accessing a EJB method, my transaction is timed out within 29 seconds. Can any one tell me the solution? I have already set the max. time out period in the JTA through the Admin Console and i have already try to set the time out period through the deployment description.
Thanks,
Atit.
-
Transaction Problem (4 messages)
- Posted by: Atit Patel
- Posted on: August 02 2002 12:07 EDT
Threaded Messages (4)
- Transaction Problem by Daniel Lang on August 04 2002 05:21 EDT
- Transaction Problem by Dave Wolf on August 04 2002 10:17 EDT
- Transaction Problem by Daniel Lang on August 06 2002 03:24 EDT
- Transaction Problem by Dave Wolf on August 04 2002 10:17 EDT
- Transaction Problem by David Jones on August 05 2002 02:39 EDT
-
Transaction Problem[ Go to top ]
- Posted by: Daniel Lang
- Posted on: August 04 2002 05:21 EDT
- in response to Atit Patel
Hi,
If you are using CMP then you need to define the transaction settings in the ejb-jar.xml deployment descriptor:
<container-transaction>
<method>
<ejb-name>YourBeanName</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
As well as set the timeout in the weblogic-ejb-jar.xml deployment descriptor:
<transaction-descriptor>
<trans-timeout-seconds>600</trans-timeout-seconds>
</transaction-descriptor>[/code]
If you are using BMP then you need to define your transactions in your code yourself:
trans = (UserTransaction) new InitialContext().lookup("javax.transaction.UserTransaction");
trans.setTransactionTimeout(300);
trans.begin();
Hope that helps,
Daniel. -
Transaction Problem[ Go to top ]
- Posted by: Dave Wolf
- Posted on: August 04 2002 10:17 EDT
- in response to Daniel Lang
Daniel,
Do not confuse BMP (Bean Managed Persistance) with BMT (Bean Managed Transactions). You dicussed BMT not BMP.
Now as for the timeout issue, can you be more clear about how you have your beans configured? Are these entities? If so BMP or CMP? What transaction model?
Dave Wolf
The Scupper Group
dave at scuppergroup dot com
-
Transaction Problem[ Go to top ]
- Posted by: Daniel Lang
- Posted on: August 06 2002 03:24 EDT
- in response to Dave Wolf
Dave's right - where I wrote BMP/CMP I meant BMT/CMT. The rest of the message is correct (I think).
Cheers,
Daniel. -
Transaction Problem[ Go to top ]
- Posted by: David Jones
- Posted on: August 05 2002 02:39 EDT
- in response to Atit Patel
Are you using SP3. There are some issues with transaction timeouts that I believe are solved in the latest service pack.
David