Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Websphere Stateful Session Beans

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using a Stateful sessiob bean in my application. The development env that we use is WSAD. After I do the application in WSAD, we import the EAR file to WAS 4.0.
I want to know, how do I change the timeout property of this sessiob bean .
Which place should I make the change ? I want to increase the timeout time.
Please let me know
Thanks
 
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open ibm-ejb-jar-ext.xmi file under your META-INF, modify "timeout" in the line
<ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="Session_1_Ext" timeout="600">
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon
I dont have a timeout tag in this file, Here is how my file looks:
<?xml version="1.0" encoding="UTF-8"?>
<ejbext:EJBJarExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" xmi:id="ejb-jar_ID_Ext">
<ejbExtensions xmi:type="ejbext:ContainerManagedEntityExtension" xmi:id="ContainerManagedEntity_1_Ext">
<runAsSettings xmi:id="SecurityIdentity_1">
<methodElements xmi:id="MethodElement_1" name="findByPrimaryKey" parms="com.test.TestCMP" type="Home">
<enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
</methodElements>
<runAsMode xmi:type="ejbext:UseCallerIdentity" xmi:id="UseCallerIdentity_1"/>
</runAsSettings>
<enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
</ejbExtensions>
<ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
</ejbext:EJBJarExtension>
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<?xml version="1.0" encoding="UTF-8"?>
<ejbext:EJBJarExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" xmi:id="ejb-jar_ID_Ext">
<ejbExtensions xmi:type="ejbext:ContainerManagedEntityExtension" xmi:id="ContainerManagedEntity_1_Ext">
<runAsSettings xmi:id="SecurityIdentity_1">
<methodElements xmi:id="MethodElement_1" name="findByPrimaryKey" parms="com.sbc.ecats.app.entity.login.WebUserCMPKey" type="Home">
<enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
</methodElements>
<runAsMode xmi:type="ejbext:UseCallerIdentity" xmi:id="UseCallerIdentity_1"/>
</runAsSettings>
<enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
</ejbExtensions>
<ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
</ejbext:EJBJarExtension>
 
Simon Song
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<ejbext:EJBJarExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" xmi:id="ejb-jar_ID_Ext">
<ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
<ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="Session_1_Ext" timeout="600">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#Session_1"/>
<structure xmi:id="BeanStructure_1" inheritenceRoot="false"/>
<beanCache xmi:id="BeanCache_1" activateAt="ONCE"/>
<internationalization xmi:id="BeanInternationalization_1" invocationLocale="CALLER"/>
<localTran xmi:id="LocalTran_1" boundary="BEAN_METHOD" unresolvedAction="ROLLBACK"/>
</ejbExtensions>
</ejbext:EJBJarExtension>
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon
I also tried pasting the xml file, but in vain
Could u please send thr file that u r trying to post to google_n@hotmail.com ?
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys use the ampersant lt comma to get it to show here.
<thistag> is escaped</this>
use your editor to search and replace.
-t
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, alternatively, place a space between the opening angle bracket and the tag name for each tag.
Kyle
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<? xml version="1.0" encoding="UTF-8" ?>
< ejbext:EJBJarExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" xmi:id="ejb-jar_ID_Ext" >
< ejbExtensions xmi:type="ejbext:ContainerManagedEntityExtension" xmi:id="ContainerManagedEntity_1_Ext" >
< runAsSettings xmi:id="SecurityIdentity_1" >
< methodElements xmi:id="MethodElement_1" name="findByPrimaryKey" parms="com.my.test.app.entity.login.UserCMPKey" type="Home" >
<e nterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1" />
</ methodElements>
< runAsMode xmi:type="ejbext:UseCallerIdentity" xmi:id="UseCallerIdentity_1" />
</ runAsSettings>
< enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1" />
</ ejbExtensions>
< ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID" />
</ ejbext:EJBJarExtension>
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kyle,
I posted the xmi file here.
But where do I modify the "timeout" prperty ?
or, how am I supposed to change the timeout value of a stateful session bean ?
Thanks
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have a question on stateful session bean timeout. A stateful session bean in our application is timing out frequently. Below is the deployment descriptor for the session bean..... Is there a way that I can make stateful session bean stay live forever....

<ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="AuditClaimManager_Ext" name="AuditClaimManager" timeout="0">
<runAsSettings xmi:id="SecurityIdentity_7">
<methodElements xmi:id="MethodElement_13" name="*" type="Unspecified">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
</methodElements>
<runAsMode xmi:type="ejbext:UseSystemIdentity" xmi:id="UseSystemIdentity_7"/>
</runAsSettings>
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
<isolationLevelAttributes xmi:id="IsolationLevelAttributes_7" isolationLevel="READ_COMMITTED">
<methodElements xmi:id="MethodElement_14" name="*" type="Unspecified">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
</methodElements>
</isolationLevelAttributes>
<isolationLevelAttributes xmi:id="IsolationLevelAttributes_1047575906161" isolationLevel="REPEATABLE_READ">
<methodElements xmi:id="MethodElement_1047575906161" name="*" type="Home">
<parms xsi:nil="true"/>
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
</methodElements>
</isolationLevelAttributes>
</ejbExtensions>

Or I want it to be insync with the HttpSession....

Thanks,
Raj
 
Raj Konduru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<pre>
<ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="AuditClaimManager_Ext" name="AuditClaimManager" timeout="0">
<runAsSettings xmi:id="SecurityIdentity_7">
<methodElements xmi:id="MethodElement_13" name="*" type="Unspecified">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
</methodElements>
<runAsMode xmi:type="ejbext:UseSystemIdentity" xmi:id="UseSystemIdentity_7"/>
</runAsSettings>
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
<isolationLevelAttributes xmi:id="IsolationLevelAttributes_7" isolationLevel="READ_COMMITTED">
<methodElements xmi:id="MethodElement_14" name="*" type="Unspecified">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
</methodElements>
</isolationLevelAttributes>
<isolationLevelAttributes xmi:id="IsolationLevelAttributes_1047575906161" isolationLevel="REPEATABLE_READ">
<methodElements xmi:id="MethodElement_1047575906161" name="*" type="Home">
<parms xsi:nil="true"/>
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#AuditClaimManager"/>
</methodElements>
</isolationLevelAttributes>
</ejbExtensions>

</pre>
 
What's that smell? I think this tiny ad may have stepped in something.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!