I've created a war containing a camel route with a restlet consumer endpoint. This war is deploying on glassfish v3 using netbeans. Whenever i try to redeploy the war the route fails to start. The glassfish log contains the following error:
WARNING: Failed to initialize routes: Address already in use
To redeploy the war i need to:
1) undeploy the war
2) stop glassfish
Next time i run the war the route is initialized successfully.
Is there anyway to improve this process? I would like to be able to redeploy without having to undeploy and stop the server.