Plus there's an mbean timer service and the somewhat more sophisticated jboss scheduler mbean.
david jencks On 2002.09.19 17:43:11 -0400 JD Brennan wrote: > 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 > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <HTML> > <HEAD> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15"> > <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> > <TITLE>RE: [JBoss-user] Can an ejb function as a daemon?</TITLE> > </HEAD> > <BODY> > > <P><FONT SIZE=2>Sounds like a good place to use an MBean. > They</FONT> > <BR><FONT SIZE=2>get started when deployed and can create threads</FONT> > <BR><FONT SIZE=2>and call Session Beans, etc.</FONT> > </P> > > <P><FONT SIZE=2>JD</FONT> > </P> > > <P><FONT SIZE=2>-----Original Message-----</FONT> > <BR><FONT SIZE=2>From: David McKnight [<A > HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> > <BR><FONT SIZE=2>Sent: Thursday, September 19, 2002 2:30 PM</FONT> > <BR><FONT SIZE=2>To: [EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2>Subject: [JBoss-user] Can an ejb function as a > daemon?</FONT> > </P> > <BR> > > <P><FONT SIZE=2>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,</FONT></P> > > <P><FONT SIZE=2>David</FONT> > <BR><FONT SIZE=2>-- </FONT> > <BR><FONT SIZE=2>__________________________________________________________</FONT> > <BR><FONT SIZE=2>Sign-up for your own FREE Personalized E-mail at > Mail.com</FONT> > <BR><FONT SIZE=2><A HREF="http://www.mail.com/?sr=signup" > TARGET="_blank">http://www.mail.com/?sr=signup</A></FONT> > </P> > <BR> > <BR> > > <P><FONT SIZE=2>-------------------------------------------------------</FONT> > <BR><FONT SIZE=2>This sf.net email is sponsored by:ThinkGeek</FONT> > <BR><FONT SIZE=2>Welcome to geek heaven.</FONT> > <BR><FONT SIZE=2><A HREF="http://thinkgeek.com/sf" > TARGET="_blank">http://thinkgeek.com/sf</A></FONT> > <BR><FONT SIZE=2>_______________________________________________</FONT> > <BR><FONT SIZE=2>JBoss-user mailing list</FONT> > <BR><FONT SIZE=2>[EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user" > TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT> > </P> > > </BODY> > </HTML> > ------------------------------------------------------- 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