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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 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: 39576
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write Resin service thread
 
Similar Threads
Creating a file-sensitive service
Servlet not running
Struts Problem in the March Article
problems with expression langguage in jsp-
Move file to new folder