wood burning stoves 2.0*
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
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Write Resin service thread" Watch "Write Resin service thread" New topic
Author

Write Resin service thread

amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50
Hi,

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
Marshal

Joined: Mar 22, 2005
Posts: 41843
    
  63
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write Resin service thread