I have a requirement where i am running jboss 4.2.2 GA as a service (windows service). We are installing the service using “Java Service Wrapper”. There is temp file which will be created in jboss/bin/server/default/log folder which needs to be deleted when JBoss is started as a service. Any suggestion is appreciated. Thanks in Advance!