Hi guys, I'm REALLY interested in how to do this too! I know practically nothing about MBeans but would love to know if they are the recommended way of periodically polling a database for changes, or if as you suggested Guy, using a timer service to access an ejb to check the database is a good approach.
Opinions please :-) By the way, the new timer service in J2EE 1.4 it seems perfect for doing this type of thing. thanks very much, Brian ----- Original Message ----- From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 4:07 AM Subject: Re: [JBoss-user] Advice: how to periodically scan a database table > I haven't thought this through completely, but have you researched using > a timer to periodically invoke an EJB, thus dispensing with the MBean > entirely? > > ----- Original Message ----- > From: "Demyanovich, Craig - Apogent" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 06, 2003 1:22 PM > Subject: [JBoss-user] Advice: how to periodically scan a database table > > > > Greetings, > > > > We're using JBoss 2.4.10. One of my colleagues has implemented an > MBean > > that spawns a thread to periodically poll a database table for new > rows > > based on criteria that we control. I see two disadvantages: one, > when we > > hot redeploy our EAR, the MBean can no longer communicate with > components in > > it; two, we can't deploy the MBean with our EAR, i.e., we don't have a > > single distributable package. I would appreciate any advice for > solving our > > problem such that we could have a single distributable package that we > can > > hot deploy as many times as we like. If such a solution is possible > only on > > JBoss 3.x, that's fine, as I've been investigating our migration path > to > > 3.x. > > > > Thanks for your time, > > Craig > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user