Rob Stryker [https://community.jboss.org/people/rob.stryker] created the 
discussion

"Re: Undeploying project when server stops"

To view the discussion, visit: https://community.jboss.org/message/752979#752979

--------------------------------------------------------------
Hi Xavier:

The current behavior is that on each 'startup' of the server, it adds and 
removes deployment scanners to line them up with what should be there. For 
example, if you're in workspace 1, and have deployments in metadata, 
customfolder1, customfolder2,  all 3 of those will be added as deployment 
scanners. If you then shut down the server, switch workspaces to workspace2, 
and start the server, it will remove those 3 folders as required and add the 
folders required in the current workspace. 

The only time this workflow fails is if you intend to start the server from 
command line. In that case, all recent scanners are still present, and need to 
be removed. 

Removing all scanners, as you suggest, would need to be done in the 'stop' 
command, before executing the actual stop. THis is what makes it a bit 
difficult to do. Are you the results I describe when switching workspaces? Or 
does workspace1 deployments still end up inside workspace2?

The other problem is that if the server is ever launched in workspace adn then 
force shutdown, the next startup from command line will still have the old 
deployment scanners enabled.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/752979#752979]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to