Author: janstey
Date: Thu Sep 18 14:40:13 2008
New Revision: 696827

URL: http://svn.apache.org/viewvc?rev=696827&view=rev
Log:
Change port numbers to get around failure when other registries are running.

Modified:
    
activemq/camel/trunk/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java
    
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/management/jmxInstrumentationWithConnector.xml

Modified: 
activemq/camel/trunk/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java?rev=696827&r1=696826&r2=696827&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java
 (original)
+++ 
activemq/camel/trunk/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java
 Thu Sep 18 14:40:13 2008
@@ -40,7 +40,7 @@
         }
 
         // Boot up a local RMI registry
-        LocateRegistry.createRegistry(1099);
+        LocateRegistry.createRegistry(9876);
 
         // START SNIPPET: register
         JndiContext context = new JndiContext();
@@ -53,11 +53,11 @@
         // lets add simple route
         camelContext.addRoutes(new RouteBuilder() {
             public void configure() {
-                from("direct:hello").to("rmi://localhost:1099/bye");
+                from("direct:hello").to("rmi://localhost:9876/bye");
 
                 // When exposing an RMI endpoint, the interfaces it exposes 
must
                 // be configured.
-                RmiEndpoint bye = 
(RmiEndpoint)endpoint("rmi://localhost:1099/bye");
+                RmiEndpoint bye = 
(RmiEndpoint)endpoint("rmi://localhost:9876/bye");
                 bye.setRemoteInterfaces(ISay.class);
                 from(bye).to("pojo:bye");
             }

Modified: 
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/management/jmxInstrumentationWithConnector.xml
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/management/jmxInstrumentationWithConnector.xml?rev=696827&r1=696826&r2=696827&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/management/jmxInstrumentationWithConnector.xml
 (original)
+++ 
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/management/jmxInstrumentationWithConnector.xml
 Thu Sep 18 14:40:13 2008
@@ -59,13 +59,13 @@
     <property name="defaultDomain" value="org.apache.camel.test"/>
   </bean>
   <bean id="registry" 
class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
-    <property name="port" value="1099"/>
+    <property name="port" value="9877"/>
   </bean>
   <bean id="serverConnector"
       class="org.springframework.jmx.support.ConnectorServerFactoryBean" 
depends-on="registry">
     <property name="objectName" value="connector:name=rmi"/>
     <property name="serviceUrl" 
-      value="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/>
+      value="service:jmx:rmi:///jndi/rmi://localhost:9877/jmxrmi"/>
     <property name="threaded" value="true"/>
     <property name="daemon" value="true"/>
   </bean>


Reply via email to