File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Products
»
JBoss
Author
Stateful Session Timeouts?
graham king
Ranch Hand
Joined: Dec 30, 2004
Posts: 133
posted
Apr 17, 2006 13:15:00
0
Hi,
I have a stateful session bean that timesout real quick which then causes a bunch of problems. Where are we able to increase the amount of time before the bean is passivated?
2006-04-17 12:13:07,188 1088526 DEBUG [org.jboss.ejb.plugins.LRUStatefulContextCachePolicy$RemoverTask.run(LRUStatefulContextCachePolicy.java:158)] Running RemoverTask 2006-04-17 12:13:07,188 1088526 DEBUG [org.jboss.ejb.plugins.LRUStatefulContextCachePolicy$RemoverTask.run(LRUStatefulContextCachePolicy.java:161)] RemoverTask, PassivatedCount=0 2006-04-17 12:13:07,198 1088536 DEBUG [org.jboss.ejb.plugins.StatefulSessionInstanceCache.removePassivated(StatefulSessionInstanceCache.java:183)] removePassivated, now=1145301187198, maxLifeAfterPassivation=1300000 2006-04-17 12:13:07,248 1088586 DEBUG [org.jboss.ejb.plugins.LRUStatefulContextCachePolicy$RemoverTask.run(LRUStatefulContextCachePolicy.java:167)] RemoverTask, done
which results in:
2006-04-17 12:17:30,586 1351924 ERROR [org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:295)] TransactionRolledbackLocalException in method: public abstract java.lang.String com.pricing.ejb.PricingListLocal.getPrice(), causedBy: java.lang.RuntimeException: Transaction marked for rollback, possibly a timeout at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimisticEJBLock.java:228) at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimisticEJBLock.java:183) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:85) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:514) at org.jboss.ejb.Container.invoke(Container.java:873) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:413) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:50) at $Proxy357.getPrice(Unknown Source)
Thanks.
Graham
write, revise, re-write, revise, again...<br />write, revise, re-write, revise, again...
I agree. Here's the link:
http://aspose.com/file-tools
subject: Stateful Session Timeouts?
Similar Threads
Stateful session bean can not be activate
WAS Base 7.0.0.19 JNDI Remote queue connection factory problem
cannot point to existing table in database: no such entity!
Entity Bean call TransactionRolledbackExce...
an exception question.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter