camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r644442 - in /activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi: RmiEndpoint.java RmiProducer.java
Date Thu, 03 Apr 2008 19:05:03 GMT
Author: jstrachan
Date: Thu Apr  3 12:05:01 2008
New Revision: 644442

URL: http://svn.apache.org/viewvc?rev=644442&view=rev
Log:
add a method parameter for specifying the method you wanna invoke

Modified:
    activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java
    activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java

Modified: activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java?rev=644442&r1=644441&r2=644442&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java
(original)
+++ activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java
Thu Apr  3 12:05:01 2008
@@ -41,6 +41,7 @@
     private ClassLoader classLoader;
     private URI uri;
     private int port;
+    private String method;
 
     protected RmiEndpoint(String endpointUri, RmiComponent component) throws URISyntaxException
{
         super(endpointUri, component);
@@ -118,4 +119,11 @@
         this.port = port;
     }
 
+    public String getMethod() {
+        return method;
+    }
+
+    public void setMethod(String method) {
+        this.method = method;
+    }
 }

Modified: activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java?rev=644442&r1=644441&r2=644442&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java
(original)
+++ activemq/camel/trunk/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java
Thu Apr  3 12:05:01 2008
@@ -36,6 +36,10 @@
         super(endpoint);
         BeanHolder holder = new RmiRegistryBean(endpoint.getContext(), endpoint.getName(),
endpoint.getRegistry());
         beanProcessor = new BeanProcessor(holder);
+        String method = endpoint.getMethod();
+        if (method != null) {
+            beanProcessor.setMethod(method);
+        }
     }
 
     public void process(Exchange exchange) throws Exception {



Mime
View raw message