openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe <fischauto...@yahoo.de>
Subject database restart during runtime?
Date Thu, 24 Feb 2011 14:22:16 GMT
Hi,

Should it be possible to restart a database used by the OpenEJB 
container without restarting the OpenEJB container itself?

When i restart the database, a test Java standalone client app (after 
restarting the client) is not always able to lookup a remote EJB 
interface, sometimes (nearly 50%) an exception is thrown, see below.

But looking up remote EJB interfaces after this exception has occured 
seems to work always.


javax.transaction.SystemException at 
org.apache.geronimo.transaction.manager.TransactionImpl.rollbackResources(TransactionImpl.java:585)
	at 
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:475)
	at 
org.apache.geronimo.transaction.manager.TransactionManagerImpl.rollback(TransactionManagerImpl.java:258)
	at 
org.apache.openejb.core.transaction.JtaTransactionPolicy.rollbackTransaction(JtaTransactionPolicy.java:333)
	at 
org.apache.openejb.core.transaction.JtaTransactionPolicy.completeTransaction(JtaTransactionPolicy.java:283)
	at 
org.apache.openejb.core.transaction.TxRequired.commit(TxRequired.java:75)
	at 
org.apache.openejb.core.transaction.EjbTransactionUtil.afterInvoke(EjbTransactionUtil.java:74)
	at 
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:241)
	at 
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:174)
	at 
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:136)
	at 
org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:238)
	at 
org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:129)
	at 
org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:196)
	at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:149)
	at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:71)
	at 
org.apache.openejb.server.ejbd.KeepAliveServer$Session.service(KeepAliveServer.java:213)
	at 
org.apache.openejb.server.ejbd.KeepAliveServer.service(KeepAliveServer.java:233)
	at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:66)
	at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)
	at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Mime
View raw message