This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Failed to create timer on Jboss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Failed to create timer on Jboss5" Watch "Failed to create timer on Jboss5" New topic
Author

Failed to create timer on Jboss5

ray frid
Ranch Hand

Joined: Dec 23, 2010
Posts: 79
I am using EJB3.0 jboss5.1AS


I have some weird problem which didnt happen before.
I am trying to test my ejb stateless bean.

I used to simulate ejb call from a servlet which inside my ear(inside WAR project) and everything worked fine.

now we try to test this ejb via servlet which is outside the EAR from an extrnal tomcat server by doing EJB-call

and all of a sudden I get this exception:


7 May 12 13:13:11, ERROR DispactherBean:dispatchMsg:113 Exception. The error msg=Failed to create timer
javax.ejb.EJBException: Failed to create timer
at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:263)
at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:171)
at org.jboss.as.ejb3.timerservice.TimerServiceFacade.createTimer(TimerServiceFacade.java:83)
at DispactherBean.dispatchMsg(DispactherBean.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

....

I am triggering my timer this way:

@Stateless
@Remote(
{ DispactherBeanRemote.class })
@RemoteBinding(jndiBinding = "DispactherBean")
public class DispactherBean implements DispactherBeanRemote, Serializable
{

private static final long serialVersionUID = 1L;
private final static Logger logger = Logger.getLogger(DispactherBean.class);

@Resource
private TimerService timerService;

public void someMethod()
{

timerService.createTimer(MomConstants.TRX_TIMEOUT_PERIOD,"test");
}
..
}
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Failed to create timer on Jboss5