Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

overriding container settings for indivisual bean  RSS feed

 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks,
we are using jboss 4.2GA for our project which uses stateful beans..and jboss is using default container settings..now the problem is for a perticular bean i need to override the container defaults. i.e its inactive time should be 4 hrs instead 10 min....please help me out..
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB3 or EJB2.x?
 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter for your quick reply....
we are using EJB2.x. for a bean we need to increase the bean age inside the container. other container details are as follows commit option B with BMT and pessimistic locking. this is my jboss.xml for bean

<jboss>
<container-configurations>
<container-configuration>
<container-name>Standard BMP EntityBean</container-name>
<commit-option>B</commit-option>

</container-configuration>
</container-configurations>
<enterprise-beans>

<session>
<ejb-name>KnowledgeBankSessionEJB</ejb-name>
<jndi-name>KnowledgeBankSessionJNDI</jndi-name>
</session>

<entity>
<ejb-name>KnowledgeBankEntityEJB</ejb-name>
<jndi-name>KnowledgeBankEntityJNDI</jndi-name>
</entity>


</enterprise-beans>
<resource-managers></resource-managers>
</jboss>


where exactly can override the container defaults ?...i cant do hit and try because application is going to production phase shortly...thanks in advance
 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vikky Bhat wrote:hi folks,
we are using jboss 4.2GA for our project which uses stateful beans..and jboss is using default container settings..now the problem is for a perticular bean i need to override the container defaults. i.e its inactive time should be 4 hrs instead 10 min....please help me out..
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Play around with the overager-period values found in server/xxx/conf/standardjboss.xml. There are several EJB caches defined in that file, it might take some experimenting to find out which one contains your bean.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!