aspose file tools
The moose likes Other Java Products and Servers and the fly likes Write Resin service thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply 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: 35258
    
    7
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.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Write Resin service thread
 
Similar Threads
Move file to new folder
Struts Problem in the March Article
problems with expression langguage in jsp-
Creating a file-sensitive service
Servlet not running