User: schaefera
Date: 01/06/04 15:55:15
Modified: src/main/org/jboss/deployment J2eeDeployer.java
Log:
Adjusted the Server Data Collector to work with the Container-MBeans to
get its management information.
Revision Changes Path
1.30 +2 -31 jboss/src/main/org/jboss/deployment/J2eeDeployer.java
Index: J2eeDeployer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/J2eeDeployer.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- J2eeDeployer.java 2001/05/23 18:12:46 1.29
+++ J2eeDeployer.java 2001/06/04 22:55:12 1.30
@@ -71,7 +71,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Schulze</a>
* @author Toby Allsopp ([EMAIL PROTECTED])
* @author [EMAIL PROTECTED]
-* @version $Revision: 1.29 $
+* @version $Revision: 1.30 $
*/
public class J2eeDeployer
extends ServiceMBeanSupport
@@ -207,9 +207,7 @@
try
{
- // <comment author="cgjung"> factored out for subclass access
- addToCollector(d,lCollector);
-
+ // <comment author="cgjung"> factored out for subclass access
startApplication (d);
log.log ("J2EE application: " + _url + " is deployed.");
}
@@ -258,33 +256,6 @@
catch( Exception e ) {
return null;
}
- }
-
- /** report of addition to data collector factored out for less
- * redundancy with subclasses
- * @author schaefera
- * @author cgjung
- */
- protected void addToCollector(Deployment d, ObjectName lCollector) {
- try {
- // Now the application is deployed add it to the server data collector
- Application lApplication = new Application( d.getName(), "DD:Fix later"
);
- server.invoke(
- lCollector,
- "saveApplication",
- new Object[] {
- d.getName(),
- lApplication
- },
- new String[] {
- "java.lang.String",
- lApplication.getClass().getName()
- }
- );
- }
- catch( Exception e ) {
- log.log("Report of deployment of J2EE application: " + d.getName() + "
could not be reported.");
- }
}
/** report of removal to data collector factored out for subclass access
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development