Sounds like a good place to use an MBean. They
get started when deployed and can create threads
and call Session Beans, etc.
JD
-----Original Message-----
From: David McKnight [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Can an ejb function as a daemon?
I have an application that polls a db table (legacy application) for data every few seconds. The data in this table will never get updated by beans, only by other tables, triggers, VB clients, etc. The app I have now runs as a daemon, when it starts up it initializes a few things then does it's first select from the table, waits a few seconds and repeats. My question is, can something like this be done in an ejb? Session or entity, preferably session since no data will be kept once it has been processed. It seems that no methods in a session bean get called when deployed by jboss - is there some parameter in jboss to set that would create at least one instance (and I only want one)? Thanks in advance,
David
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user