On Fri, 4 Apr 2003 18:28, Dominique Casserres wrote: > Hello, > I would like your thoughts on the following that is not very J2EE > complaint. > When a MDB receives a message, it sohuld start an external program > (let's call it "prog.exe"). When this "prog" completes, it writes a file > (result.xml). > > I would like to read every n seconds whether the contents of result.xml > is "<ok/>"; > During the n seconds I ould like to be in a waiting state. > > How could I do that? > I am looking at the timer MBean but i am not sure to be on the right > way.
I can well understand why this is necessary in integration with legacy apps. The way I'd approach it is to write my own MBean that does the file polling and drive that MBean from the jboss Scheduler bean (org.jboss.varia.scheduler.Scheduler) that can be easily configured in a -service.xml file and also started/stopped and configured via the jmx-console brian wallis... ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
