User: schaefera
Date: 02/03/18 14:34:03
Modified: src/main/org/jboss/deployment MainDeployer.java
Log:
Fixed the broken Farm Member Service. Now the Main Deployer is emitting JMX
notification when an object is deployed / undeployed and the Farm Member
Service is listening for.
Also the Farm Member Service is self-contained meaning that you only have
to adjust the farm-service.xml and deployed it (no further adjustments
necessary even the creation of the farm directory).
Also fixed a problem with URL Deployment Scanner which fails when a new
directory is added (through addURL()) during startup by another MBean
because list is changed without recreation of the iterator. Now the
iterator is replaced by a generated array which does not change when the
list changes.
Revision Changes Path
1.19 +19 -1 jboss-system/src/main/org/jboss/deployment/MainDeployer.java
Index: MainDeployer.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/MainDeployer.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- MainDeployer.java 9 Mar 2002 05:22:38 -0000 1.18
+++ MainDeployer.java 18 Mar 2002 22:34:03 -0000 1.19
@@ -42,6 +42,7 @@
import java.util.jar.Manifest;
import javax.management.MBeanServer;
import javax.management.MalformedObjectNameException;
+import javax.management.Notification;
import javax.management.ObjectName;
import org.jboss.system.ServiceMBeanSupport;
import org.jboss.system.server.ServerConfig;
@@ -58,7 +59,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
- * @version $Revision: 1.18 $
+ * @version $Revision: 1.19 $
* @jmx:mbean name="jboss.system:service=MainDeployer"
* extends="org.jboss.system.ServiceMBean"
*/
@@ -322,6 +323,14 @@
log.info("Undeploying "+di.url);
stop(di);
destroy(di);
+ //AS Test if JMX Notifications can be used to trigger the FarmMemberService
+ Notification lNotification = new Notification(
+ "Undeployment",
+ this,
+ 0L
+ );
+ lNotification.setUserData( di.url );
+ sendNotification( lNotification );
}
/**
@@ -478,6 +487,15 @@
log.info("Starting deployment of package: " + deployment.url);
if (init(deployment))
{
+ //AS Test if JMX Notifications can be used to trigger the FarmMemberService
+ Notification lNotification = new Notification(
+ "Deployment",
+ this,
+ 0L
+ );
+ lNotification.setUserData( deployment.url );
+ sendNotification( lNotification );
+
create(deployment);
start(deployment);
log.info("Successfully completed deployment of package: " +
deployment.url);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development