<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The notification type should be added to the existing
MainDeployerConstants<br>
<br>
org.jboss.deployment.MainDeployerConstants<br>
{<br>
/** The JMX notification type sent when a deployer is added */<br>
public static final String ADD_DEPLOYER =
"org.jboss.deployment.MainDeployer.addDeployer";<br>
/** The JMX notification type sent when a deployer is removed */<br>
public static final String REMOVE_DEPLOYER =
"org.jboss.deployment.MainDeployer.removeDeployer";<br>
/** The JMX notification type sent when a deploy is performed */<br>
public static final String DEPLOY =
"org.jboss.deployment.MainDeployer.deploy";<br>
/** The JMX notification type sent when a undeploy is performed */<br>
public static final String UNDEPLOY =
"org.jboss.deployment.MainDeployer.undeploy";<br>
/** The JMX notification type sent when a undeploy/deploy cycle is
performed */<br>
public static final String REDEPLOY =
"org.jboss.deployment.MainDeployer.redeploy";<br>
}<br>
<br>
One question is whether there should be BEGIN_DEPLOY/END_DEPLOY
notifications that would allow one to determine the outcome of the
deploy. Most likely a begin/end notification is the cleanest way to
introduce the notifications.<br>
<br>
Jean-frederic Clere wrote:
<blockquote cite="mid1159346467.4932.14.camel@localhost" type="cite">
<pre wrap="">On Fri, 2006-09-22 at 08:37 -0700, Scott M Stark wrote:
</pre>
<blockquote type="cite">
<pre wrap="">You can pass in a hint as a url parameter <a class="moz-txt-link-rfc2396E" href="file:/.../deploy/my.war?redeploy=true">"file:/.../deploy/my.war?
redeploy=true"</a> so that the main deployer can set a flag in the
deployment.
</pre>
</blockquote>
<pre wrap=""><!---->
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
</pre>
</blockquote>
</body>
</html>