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.
If you are using CMP then you need to define the transaction settings in the ejb-jar.xml deployment descriptor:
As well as set the timeout in the weblogic-ejb-jar.xml deployment descriptor:
If you are using BMP then you need to define your transactions in your code yourself:
trans = (UserTransaction) new InitialContext().lookup("javax.transaction.UserTransaction");
Hope that helps,
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?
The Scupper Group
dave at scuppergroup dot com
Dave's right - where I wrote BMP/CMP I meant BMT/CMT. The rest of the message is correct (I think).
Are you using SP3. There are some issues with transaction timeouts that I believe are solved in the latest service pack.