Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 41149
    
  45
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Write Resin service thread
 
Similar Threads
Move file to new folder
Struts Problem in the March Article
Creating a file-sensitive service
Servlet not running
problems with expression langguage in jsp-