[jboss-user] [EJB3] - JBOSS EJB Timers, delete multiple copies.

David Steel do-not-reply at jboss.com
Fri Dec 2 07:11:10 EST 2011


David Steel [http://community.jboss.org/people/dsteel100] created the discussion

"JBOSS EJB Timers, delete multiple copies."

To view the discussion, visit: http://community.jboss.org/message/639526#639526

--------------------------------------------------------------
I have moved from GlassFish in the past couple of days and I am using JBoss 6 and JBoss Developer Studio (30 day trail) to see if this is the way to go.  

I have created a Session Bean that is as follows:

@Stateless
@LocalBean
public class FileMonitorTimer {

    @Schedule(second = "*/15", minute = "*", hour = "*", dayOfMonth = "*", month = "*", year = "*")
    public void ProcessFiles() {
        //do bits here
    }

Every time I run the project from the IDE I get another timer instance created, so my questions are:

How do I remove multiple timer copies?
How do I ensure only one timer exists?

I didn't have this issue with GlassFish, but the code is the same.

Dave
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/639526#639526]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111202/a6e3c751/attachment.html 


More information about the jboss-user mailing list