• Post Reply Bookmark Topic Watch Topic
  • New Topic

TIMEOUTS orion-ejb-jar.xml

 
Mabobotsane Mogo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How do I setup EJB to timeout on a specific time (e.g. 5 min) and throw RemoteException to the client/ caller

call-timeout="500000" in the orion-ejb-jar...

try
{ others processes .. conn.commit; }
catch(Exception e)
{ conn.rollback;}

In short I don't want the EJB to commit to the database when there is timeout ..

regards
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Oracle OC4J Container, when a timeout occurs then the JTA container-managed transaction will get rolled back automatically. As long as you get a connection from a JTA-enabled datasource then you would not need to commit or roll it back explicitly. That will happen for you as a result of the container-managed transaction.

-Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!