This content has been marked as final.
Show 3 replies
-
1. Re: Stopping deletes files in deploy-hasingleton
jaikiran Jan 30, 2009 5:50 AM (in response to j-n00b)You are right. I just reproduced this on JBossAS5.0 GA by placing a queue configuration file in %JBOSS_HOME%/server/all/deploy-hasingleton folder. On shutdown, the file was deleted. Could you please open a thread in JBossAS5 forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=287, where someone might be knowing the cause? You can point to this topic in the your thread. The issue can be reproduced from the command prompt too without the need of running as service (so the "service" factor can be ruled out as the cause)
-
2. Re: Stopping deletes files in deploy-hasingleton
jaikiran Jan 30, 2009 6:27 AM (in response to j-n00b)Found it. It looks like it's the SerializableDeploymentRepository which does this:
protected VFSDeployment removeApplication(String vfsPath) throws Exception { VFSDeployment vfsDeployment = getApplication(vfsPath); VirtualFile root = vfsDeployment.getRoot(); if(root.delete() == false) throw new IOException("Failed to delete: " + root); return this.applicationCtxs.remove(vfsPath); }
Not sure why the application needs to be physically deleted. -
3. Re: Stopping deletes files in deploy-hasingleton
j-n00b Jan 30, 2009 6:27 AM (in response to j-n00b)