[JBoss-dev] httpd and tomcatClustering gives 404 during redeploy.
Jean-frederic Clere
jfclere at gmail.com
Thu Sep 28 03:28:40 EDT 2006
On Wed, 2006-09-27 at 13:18 -0700, Scott M Stark wrote:
> The notification type should be added to the existing
> MainDeployerConstants
>
> org.jboss.deployment.MainDeployerConstants
> {
> /** The JMX notification type sent when a deployer is added */
> public static final String ADD_DEPLOYER =
> "org.jboss.deployment.MainDeployer.addDeployer";
> /** The JMX notification type sent when a deployer is removed */
> public static final String REMOVE_DEPLOYER =
> "org.jboss.deployment.MainDeployer.removeDeployer";
> /** The JMX notification type sent when a deploy is performed */
> public static final String DEPLOY =
> "org.jboss.deployment.MainDeployer.deploy";
> /** The JMX notification type sent when a undeploy is performed */
> public static final String UNDEPLOY =
> "org.jboss.deployment.MainDeployer.undeploy";
> /** The JMX notification type sent when a undeploy/deploy cycle is
> performed */
> public static final String REDEPLOY =
> "org.jboss.deployment.MainDeployer.redeploy";
> }
>
> One question is whether there should be BEGIN_DEPLOY/END_DEPLOY
> notifications that would allow one to determine the outcome of the
> deploy.
That means we would need:
BEGIN_DEPLOY/END_DEPLOY
BEGIN_REDEPLOY/END_REDEPLOY
BEGIN_UNDEPLOY/END_UNDEPLOY
to be able to know the result of the action, wouldn't we?
In fact to prevent the 404 I just need to forward the BEGIN_REDEPLOY to
Apache httpd. (Tomcat has its event to tell that a Context is up again).
Cheers
Jean-Frederic
> Most likely a begin/end notification is the cleanest way to introduce
> the notifications.
> /** The JMX notification type sent when a undeploy i
>
> Jean-frederic Clere wrote:
> > On Fri, 2006-09-22 at 08:37 -0700, Scott M Stark wrote:
> >
> > > You can pass in a hint as a url parameter "file:/.../deploy/my.war?
> > > redeploy=true" so that the main deployer can set a flag in the
> > > deployment.
> > >
> >
> > Ok, this seems to work. Now I have the information that the undeploy()
> > occurs in MainDeployer because of a redeployment.
> >
> > To send the information to my listener (and later to Apache httpd) I am
> > thinking of using a Notification("StartReDeploy", ...) and use the
> > DeploymentInfo to have the Host and the Context information.
> >
> > Any comments?
> >
> > Cheers
> >
> > Jean-Frederic
> >
> >
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list