users@glassfish.java.net

Re: Thread pool problem - increasing JVM instances

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jun 2010 02:47:58 PDT

Hi guys,

I further investigated the problem... after commenting my two @Schedule annotations no more Threads are produced.

The code for my Scheduled Bean looks like this:

@ConcurrencyManagement(javax.ejb.ConcurrencyManagementType.CONTAINER)
@Startup
@Singleton

public class ReporterTaskBean {

    @EJB
    private DataBean pdb;

    @Schedule(minute = "*/1", hour = "*")
    public void executeTimer() {
          // some code
    }
}

Is there a proper way to destroy objects or free resources of those beans.

Cheers
Peter
[Message sent by forum member 'peter0601']

http://forums.java.net/jive/thread.jspa?messageID=472219