servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r391950 - in /incubator/servicemix/trunk/servicemix-core/src: main/java/org/apache/servicemix/jbi/management/task/JbiTask.java test/java/org/apache/servicemix/jbi/management/task/JbiTaskTest.java
Date Thu, 06 Apr 2006 09:50:33 GMT
Author: gnodet
Date: Thu Apr  6 02:50:31 2006
New Revision: 391950

URL: http://svn.apache.org/viewcvs?rev=391950&view=rev
Log:
SM-386: hostname and port in Ant task is not used

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java
    incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/management/task/JbiTaskTest.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java?rev=391950&r1=391949&r2=391950&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java
Thu Apr  6 02:50:31 2006
@@ -77,8 +77,7 @@
      * initialize the connection
      * @throws BuildException
      */
-    public void init() throws BuildException {
-        super.init();
+    public void connect() throws BuildException {
         try {
             this.jmxConnector = getJMXConnector(getServiceURL());
         }
@@ -263,6 +262,7 @@
      */
     public void execute() throws BuildException {
         AdminCommandsServiceMBean acs;
+        connect();
         try {
             log("Retrieving remote admin interface", Project.MSG_DEBUG);
             acs = getAdminCommandsService();

Modified: incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/management/task/JbiTaskTest.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/management/task/JbiTaskTest.java?rev=391950&r1=391949&r2=391950&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/management/task/JbiTaskTest.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/management/task/JbiTaskTest.java
Thu Apr  6 02:50:31 2006
@@ -39,6 +39,7 @@
             }
         };
         jbiTask.init();
+        jbiTask.connect();
     }
 
     /*



Mime
View raw message