users@glassfish.java.net

Re: How could I implement and deploy a background process in Glassfish?

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Jan 2008 23:48:43 PST

Hi, Thanks for all the answers:

1. Actually I'm doing a JMX Bean, to start a pool of threads to ping the 1400 remote units we have. Problem with this approach: Not Portable and I don`t know how to implement something like a timer that calls the startPing Process method of my JMX bean every 15 minutes. So I'm not fully satisfied with this.

2. I really like the Connector approach because you can use threads, and is Portable, but the problem is that I don't know nothing about connectors, and I don't know if it requires much time to learn; time is always a problem. bbergquist, you've posted that yo've done a SNMP Connector, could you share some code with me? I'm really a newby in connector issues.

3. The EJB Timer approach was one of my thoughts, but I have a lot of pings to do, and we are not supposed to do Threads in that beans, do we?

4. ServletContextInitialized -> problems with cluster, so dismissed
[Message sent by forum member 'abelmj' (abelmj)]

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