Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to override the default stateful session bean timeout in websphere 7.0?

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a problem with a stateful session bean deployed on websphere 7.0. I know that the default timeout for EJBs on websphere 7.0 is 10 minutes. After doing some search, I learnt that it is impossible to override the default timeout settings globaly but instead it must be done on each EJB. I tried creating ibm-ejb-jar-ext.xmi file and put it inside the meta-inf folder of the EJB jar, and gave it the following elements:

<?xml version="1.0" encoding="UTF-8"?>
<ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="Session_ext_23">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#EJB_ID"/>

<resourceRefExtensions xmi:id="ResourceRef_ext_22">
<resourceRef href="META-INF/ejb-jar.xml#ResRef_22"/>



but the problem still occures and the session times out after 10 minutes. Does anyone have any idea about how to solve this issue?

thanks in advance
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the under websphere 7.x the extension files end with .xml

The xmi files work for WAS 6.x and below. So try changing the extension and see the behavior.

Other thing you can do is to turn on the trace options for EJB annotations, meta data and see what timeout value is being dumped in the trace file.

Let me know if you need further help
Popeye has his spinach. I have this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic