-
1. Re: Can I Turning off 'EJBTimerService' in JBoss 6.0 ?
wdfink Jun 28, 2011 2:20 AM (in response to jbossuser71)I suppose that the timer service is required by the deployment.
If you don't need it remove the bean from the ejb2-timer-service.xml and use the commented section as shown below
<mbean code="org.jboss.ejb.txtimer.NoopPersistencePolicy" name="jboss.ejb:service=EJBTimerService,persistencePolicy=noop"/>
-
2. Re: Can I Turning off 'EJBTimerService' in JBoss 6.0 ?
jbossuser71 Jun 28, 2011 2:21 PM (in response to wdfink)Thanks for the response.
I followed your suggestion - but that did not help.
I did comment out the related MBean code i.e. '<mbean code="org.jboss.ejb.txtimer.DatabasePersistencePolicy"'
- but I still get deployment error.
Looks like, the 'DatabasePersistencePolicy' is being invoked internally when JBoss starts up - so probably we cannot get rid of 'DatabasePersistencePolicy'.
at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.init(GeneralPurposeDatabasePersistencePlugin.java:117) [:6.0.0.Final] at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.init(GeneralPurposeDatabasePersistencePlugin.java:100) [:6.0.0.Final] at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:89) [:6.0.0.Final] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:355) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:301) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26] at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA] at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189) [:2.2.0.GA] -
3. Re: Can I Turning off 'EJBTimerService' in JBoss 6.0 ?
wdfink Jun 28, 2011 3:17 PM (in response to jbossuser71)Ooh,
looks like different in JBoss6.
There is another Timer (Tx aware) a bit below.
Look to line 49 (default configuration), I attach my ejb2-timer-service.xml from the fresh 'default' deploy folder.
-
ejb2-timer-service.xml 2.8 KB
-
-
4. Re: Can I Turning off 'EJBTimerService' in JBoss 6.0 ?
jbossuser71 Jun 28, 2011 6:24 PM (in response to wdfink)Yes - that works!
I tried similar combinations but not this one!
THANKs a lot.