Why don't you create a pending directory and use the native OS scheduler to move your deployment files from there to the JBoss deploy directory? Say "at" in an NT/Win2K environment, or "at" or "crontab" in a *nix environment. It seems more sensible to reuse than to re-invent the wheel. More environmentally byte friendly too. :)
Unless there is a particular problem with using the native OS.
Thanks your reply and i will try it. Do you have idea to do it on solaris 8 version. I'm new for solaris too. My project is running on sun server. Please help me jonlee. Thanks again for your valubale reply.
The first thing would be to check your "at" and "crontab" commands. If you have a complete installation of Solaris, you should "man at" and "man crontab" to get the manual information on the commands.
Use the "at" command if you want a one-off execution.
Use the "crontab" command if you want to execute automatically at a certain time every week, or at a certain time every month and so on.
What you want is to create a script file that achieves what you want. For example:
mv /opt/JBoss-3.2.0/server/default/pending/*.war /opt/server/default/deploy
This simple script just moves *.war files from the pending directory into the deploy directory. You can tighten things up by checking that files exist before moving them but that is an exercise left for the student. ;) Test your script to make sure it runs as you expect - make sure it works as the user you expect to execute the script as.
Now add it to your crontab for the particular user/account you want to execute the script as. It is a bit beyond scope to cover the exact details for setting up your schedule but there are plenty of examples on-line. Just google it.
A lot of this is beyond the scope of this forum but the *nix schedulers have plenty of information on-line so you shouldn't have too much an issue getting things running.
Hope that helps.
Thanks for your reply.I will try.If i need help i will contact you.