Dear Readers,
A few questions I couldn't find answers to in freely accessible documents or google:
I have a recurring timer in a
JBoss 4.0.5
J2EE application. Once invoked, it executes every few minutes.
The timer works fine. I can invoke it from a
servlet when I press a button in a
JSP.
I have 2 questions regarding timer services in JBoss:
1. I would like to have the timer start automatically when the container is started without having to do anything manually in the web layer. Is there a way of doing this?
2. Is there a way I can invoke the timer using the jboss jmx-console? Clicking on service=EJBTimerService in the jboss.ejb section in the jmx-console lets me invoke the java.lang.String listTimers() function. This function gives me a list of currently running timers. But how do I invoke a new instance of this timer in the service=EJBTimerService view?