geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r587768 - /geronimo/sandbox/monitoring/mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/MasterRemoteControl.java
Date Wed, 24 Oct 2007 03:41:18 GMT
Author: gawor
Date: Tue Oct 23 20:41:18 2007
New Revision: 587768

URL: http://svn.apache.org/viewvc?rev=587768&view=rev
Log:
move some code from constructor to init method so that is it called after the resources are
injected

Modified:
    geronimo/sandbox/monitoring/mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/MasterRemoteControl.java

Modified: geronimo/sandbox/monitoring/mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/MasterRemoteControl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/MasterRemoteControl.java?rev=587768&r1=587767&r2=587768&view=diff
==============================================================================
--- geronimo/sandbox/monitoring/mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/MasterRemoteControl.java
(original)
+++ geronimo/sandbox/monitoring/mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/MasterRemoteControl.java
Tue Oct 23 20:41:18 2007
@@ -32,6 +32,7 @@
 import java.util.TreeMap;
 
 import javax.annotation.Resource;
+import javax.annotation.PostConstruct;
 import javax.annotation.security.RolesAllowed;
 import javax.annotation.security.RunAs;
 import javax.ejb.Remote;
@@ -101,6 +102,11 @@
     @Resource(name="ActiveDS") private DataSource ds;
 
     public MasterRemoteControl() {
+    }
+
+    @PostConstruct
+    private void init() {
+
         // retrieve the mbean server
         ArrayList mbServerList = MBeanServerFactory.findMBeanServer(null);
         if(mbServerList.size() >= 1) {
@@ -519,4 +525,4 @@
     public TreeMap<Long, Long> getSpecificStatistics(String mbeanName, String statsName,
int numberOfSnapshots, int everyNthSnapshot) {
         return SnapshotDBHelper.getSpecificStatistics(mbeanName, statsName, numberOfSnapshots,
everyNthSnapshot);
     }
-}
\ No newline at end of file
+}



Mime
View raw message