wood burning stoves
The moose likes Other Java Products and Servers and the fly likes Write Resin service thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Write Resin service thread" Watch "Write Resin service thread" New topic

Write Resin service thread

amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50

I have to rite a service thread that ill alays be running when resin is running. It will keep a look in a predefined folder and keep checking for new XML file in the folder. As soon as new XML arrives in the folder the service thread should launch a new thread and pass that xml file to a web application.

Please help me. Its very urgent. My entire project depends on this feature.

Amitesh K.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
You should start a Timer/TimerTask upon web app loading that periodically checks whether any files have arrived. Look into web app context listeners to do that. I don't think anything Resin-specific needs to be done for this.
I agree. Here's the link: http://aspose.com/file-tools
subject: Write Resin service thread
It's not a secret anymore!