• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

overriding container settings for indivisual bean

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJB3 or EJB2.x?
 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic