Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Setting the Transaction Time  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

we have a Stateless session EJB in which there are several webservices. We are facing the problem of Transaction Time out. It is now that decided that for each webservice we will set different Transaction times.

We tried changing the "<trans-timeout-seconds>" in weblogic-ejb-jar.xml but came to know that this is for the entire application. Is there any way to set the Transaction time for a single method in an EJB.

For example,

if our bean is LoginBean, there are different webservices like checkId, getId, checkBooks... etc... is there any way to change the transaction time only for checkId? we are using Container Managed Transaction...

Kindly help.....
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there is not such provision for individual method transaction timeout time.
However I will suggest a workaround. Create different EJB Projects with different transaction timeouts. Put the ejbs with siutable methods ( as per need of transaction timeout) in suitable ejb project. Create a jar file which will contain all the common code & include that jar in each ejb project.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!