activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r521329 - in /activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi: CamelEndpointComponent.java CamelServiceEngineEndpoint.java
Date Thu, 22 Mar 2007 16:33:12 GMT
Author: rajdavies
Date: Thu Mar 22 09:33:11 2007
New Revision: 521329

URL: http://svn.apache.org/viewvc?view=rev&rev=521329
Log:
pass through the camelContext

Modified:
    activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelEndpointComponent.java
    activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelServiceEngineEndpoint.java

Modified: activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelEndpointComponent.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelEndpointComponent.java?view=diff&rev=521329&r1=521328&r2=521329
==============================================================================
--- activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelEndpointComponent.java
(original)
+++ activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelEndpointComponent.java
Thu Mar 22 09:33:11 2007
@@ -16,6 +16,10 @@
  */
 package org.apache.camel.component.jbi;
 
+import javax.jbi.messaging.MessageExchange;
+import javax.jbi.messaging.MessagingException;
+import org.apache.camel.CamelContext;
+import org.apache.servicemix.MessageExchangeListener;
 import org.apache.servicemix.components.util.ComponentSupport;
 
 
@@ -24,15 +28,22 @@
  * The Component activated in the JBIContainer
  * @version $Revision: 426415 $
  */
-public class CamelEndpointComponent extends ComponentSupport {
+public class CamelEndpointComponent extends ComponentSupport implements MessageExchangeListener{
+    private CamelContext camelContext;
     private JbiEndpoint jbiEndpoint;
     
-    CamelEndpointComponent(JbiEndpoint jbiEndpoint){
+    CamelEndpointComponent(CamelContext camelContext,JbiEndpoint jbiEndpoint){
+        this.camelContext=camelContext;
         this.jbiEndpoint=jbiEndpoint;
     }
     
     public String getName() {
         return jbiEndpoint.getEndpointUri();
+    }
+    
+    public void onMessageExchange(MessageExchange exchange) throws MessagingException{
+      
+
     }
     
 

Modified: activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelServiceEngineEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelServiceEngineEndpoint.java?view=diff&rev=521329&r1=521328&r2=521329
==============================================================================
--- activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelServiceEngineEndpoint.java
(original)
+++ activemq/camel/trunk/camel-jbi/src/main/java/org/apache/camel/component/jbi/CamelServiceEngineEndpoint.java
Thu Mar 22 09:33:11 2007
@@ -17,8 +17,12 @@
 package org.apache.camel.component.jbi;
 
 import javax.jbi.component.ComponentContext;
+import javax.jbi.messaging.MessageExchange;
+import javax.jbi.messaging.MessagingException;
 import javax.jbi.messaging.MessageExchange.Role;
 import javax.xml.namespace.QName;
+import org.apache.camel.CamelContext;
+import org.apache.servicemix.MessageExchangeListener;
 import org.apache.servicemix.common.ExchangeProcessor;
 import org.apache.servicemix.jbi.container.JBIContainer;
 import org.apache.servicemix.jbi.framework.ComponentContextImpl;
@@ -31,10 +35,11 @@
 
     private static final QName SERVICE_NAME = new QName("http://camel.servicemix.org", "CamelEndpointComponent");
     
+    private CamelContext camelContext;
     private CamelEndpointComponent camelEndpointComponent;
     
-    public CamelServiceEngineEndpoint(JbiEndpoint jbiEndpoint) {
-        this.camelEndpointComponent = new CamelEndpointComponent(jbiEndpoint);
+    public CamelServiceEngineEndpoint(CamelContext camelContext,JbiEndpoint jbiEndpoint)
{
+        this.camelEndpointComponent = new CamelEndpointComponent(camelContext,jbiEndpoint);
         this.service = SERVICE_NAME;
         this.endpoint=jbiEndpoint.getEndpointUri();
     }
@@ -62,5 +67,7 @@
         }
         throw new IllegalStateException("LwContainer component can only be deployed in ServiceMix");
     }
+    
+   
 
 }



Mime
View raw message