You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/04/23 11:43:27 UTC
svn commit: r937215 - in /camel/trunk: components/camel-ode/
components/camel-ode/src/ components/camel-ode/src/main/
components/camel-ode/src/main/java/ components/camel-ode/src/main/java/org/
components/camel-ode/src/main/java/org/apache/ components/...
Author: davsclaus
Date: Fri Apr 23 09:43:26 2010
New Revision: 937215
URL: http://svn.apache.org/viewvc?rev=937215&view=rev
Log:
CAMEL-2671: camel-ode prototype for bpel support in Camel.
Added:
camel/trunk/components/camel-ode/
camel/trunk/components/camel-ode/pom.xml (with props)
camel/trunk/components/camel-ode/src/
camel/trunk/components/camel-ode/src/main/
camel/trunk/components/camel-ode/src/main/java/
camel/trunk/components/camel-ode/src/main/java/org/
camel/trunk/components/camel-ode/src/main/java/org/apache/
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java (with props)
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java (with props)
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java (with props)
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java (with props)
camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java (with props)
camel/trunk/components/camel-ode/src/test/
camel/trunk/components/camel-ode/src/test/java/
camel/trunk/components/camel-ode/src/test/java/org/
camel/trunk/components/camel-ode/src/test/java/org/apache/
camel/trunk/components/camel-ode/src/test/java/org/apache/camel/
camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/
camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/
camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java (with props)
camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java (with props)
camel/trunk/components/camel-ode/src/test/resources/
camel/trunk/components/camel-ode/src/test/resources/bpel/
camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/
camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.bpel
camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl (with props)
camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml (with props)
camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties (with props)
camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties (with props)
camel/trunk/components/camel-ode/src/test/resources/log4j.properties (with props)
Modified:
camel/trunk/parent/pom.xml
Added: camel/trunk/components/camel-ode/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/pom.xml?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/pom.xml (added)
+++ camel/trunk/components/camel-ode/pom.xml Fri Apr 23 09:43:26 2010
@@ -0,0 +1,243 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-parent</artifactId>
+ <version>2.3-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-ode</artifactId>
+ <packaging>bundle</packaging>
+ <name>Camel :: ODE</name>
+ <description>Camel BPEL (Apache ODE) support</description>
+
+ <properties>
+ <camel.osgi.export.pkg>org.apache.camel.component.ode.*</camel.osgi.export.pkg>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>servicemix</id>
+ <name>Apache ServiceMix Repository</name>
+ <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-core</artifactId>
+ </dependency>
+
+ <!-- Apache ODE has many dependencies -->
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-api</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-compiler</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-epr</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-runtime</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-schemas</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-dao</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-obj</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-dao-jpa</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-store</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-agents</artifactId>
+ <!-- only version 1.3.2 is found -->
+ <version>1.3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-scheduler-simple</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-tools</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-utils</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-jacob</artifactId>
+ <version>${ode-version}</version>
+ </dependency>
+
+ <!-- dependencies needed by ODE -->
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jta_1.1_spec</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ <version>1.6.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xmlbeans</groupId>
+ <artifactId>xmlbeans</artifactId>
+ <version>${xmlbeans-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>${xalan-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>jaxen</groupId>
+ <artifactId>jaxen</artifactId>
+ <version>${jaxen-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon</artifactId>
+ <version>${saxon-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-dom</artifactId>
+ <version>${saxon-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-xqj</artifactId>
+ <version>${saxon-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-xpath</artifactId>
+ <version>${saxon-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>${xerces-version}</version>
+ </dependency>
+
+ <!-- testing -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <!-- to allow Spring annotations (jmx) to be tested -->
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <optional>true</optional>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aop</artifactId>
+ <optional>true</optional>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- ode test kit -->
+ <dependency>
+ <groupId>org.apache.ode</groupId>
+ <artifactId>ode-bpel-test</artifactId>
+ <version>${ode-version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- TM manager needed for testing -->
+ <dependency>
+ <groupId>org.apache.geronimo.components</groupId>
+ <artifactId>geronimo-transaction</artifactId>
+ <version>2.1.3</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.openjpa</groupId>
+ <artifactId>openjpa</artifactId>
+ <scope>test</scope>
+ <version>1.2.1</version>
+ </dependency>
+
+ </dependencies>
+
+</project>
Propchange: camel/trunk/components/camel-ode/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/components/camel-ode/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java (added)
+++ camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,50 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import javax.wsdl.PortType;
+import javax.xml.namespace.QName;
+
+import org.apache.ode.bpel.iapi.BindingContext;
+import org.apache.ode.bpel.iapi.Endpoint;
+import org.apache.ode.bpel.iapi.EndpointReference;
+import org.apache.ode.bpel.iapi.PartnerRoleChannel;
+
+/**
+ * @version $Revision$
+ */
+public class OdeBindingContext implements BindingContext {
+
+ public EndpointReference activateMyRoleEndpoint(QName processId, Endpoint roleEndpoint) {
+ System.out.println("activateMyRoleEndpoint");
+ return null;
+ }
+
+ public void deactivateMyRoleEndpoint(Endpoint endpoint) {
+ System.out.println("deactivateMyRoleEndpoint");
+ }
+
+ public PartnerRoleChannel createPartnerRoleChannel(QName qName, PortType portType, Endpoint endpoint) {
+ System.out.println("createPartnerRoleChannel");
+ return null;
+ }
+
+ public long calculateSizeofService(EndpointReference endpointReference) {
+ System.out.println("calculateSizeofService");
+ return 0;
+ }
+}
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeBindingContext.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java (added)
+++ camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,34 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import java.util.Map;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.impl.DefaultComponent;
+
+/**
+ * @version $Revision$
+ */
+public class OdeComponent extends DefaultComponent {
+
+ @Override
+ protected Endpoint createEndpoint(String url, String remaining, Map<String, Object> parameters) throws Exception {
+ return null;
+ }
+
+}
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeComponent.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java (added)
+++ camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,46 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import java.util.Map;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.ode.bpel.iapi.EndpointReference;
+import org.apache.ode.bpel.iapi.EndpointReferenceContext;
+
+/**
+ * @version $Revision$
+ */
+public class OdeEndpointReferenceContext implements EndpointReferenceContext {
+
+ public EndpointReference resolveEndpointReference(Element element) {
+ System.out.println("resolveEndpointReference");
+ return null;
+ }
+
+ public EndpointReference convertEndpoint(QName qName, Element element) {
+ System.out.println("convertEndpoint");
+ return null;
+ }
+
+ public Map getConfigLookup(EndpointReference endpointReference) {
+ System.out.println("getConfigLookup");
+ return null;
+ }
+}
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeEndpointReferenceContext.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java (added)
+++ camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,38 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import org.apache.ode.bpel.iapi.BpelEngineException;
+import org.apache.ode.bpel.iapi.ContextException;
+import org.apache.ode.bpel.iapi.MessageExchangeContext;
+import org.apache.ode.bpel.iapi.MyRoleMessageExchange;
+import org.apache.ode.bpel.iapi.PartnerRoleMessageExchange;
+
+/**
+ * @version $Revision$
+ */
+public class OdeMessageExchangeContext implements MessageExchangeContext {
+
+ public void invokePartner(PartnerRoleMessageExchange partnerRoleMessageExchange) throws ContextException {
+ System.out.println("invokePartner");
+ }
+
+ public void onAsyncReply(MyRoleMessageExchange myRoleMessageExchange) throws BpelEngineException {
+ System.out.println("onAsyncReply");
+ }
+
+}
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeMessageExchangeContext.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java (added)
+++ camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,223 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.net.URL;
+import java.util.Collection;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import javax.sql.DataSource;
+import javax.transaction.TransactionManager;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Document;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.impl.ServiceSupport;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ode.bpel.dao.BpelDAOConnectionFactory;
+import org.apache.ode.bpel.engine.BpelServerImpl;
+import org.apache.ode.bpel.extvar.jdbc.JdbcExternalVariableModule;
+import org.apache.ode.bpel.iapi.BindingContext;
+import org.apache.ode.bpel.iapi.EndpointReferenceContext;
+import org.apache.ode.bpel.iapi.Message;
+import org.apache.ode.bpel.iapi.MessageExchange;
+import org.apache.ode.bpel.iapi.MessageExchangeContext;
+import org.apache.ode.bpel.iapi.MyRoleMessageExchange;
+import org.apache.ode.bpel.iapi.ProcessStore;
+import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl;
+import org.apache.ode.il.MockScheduler;
+import org.apache.ode.il.config.OdeConfigProperties;
+import org.apache.ode.il.dbutil.Database;
+import org.apache.ode.store.ProcessConfImpl;
+import org.apache.ode.store.ProcessStoreImpl;
+
+/**
+ * Encapsulates all the stuff needed to setup and use Apache ODE.
+ *
+ * @version $Revision$
+ */
+public class OdeService extends ServiceSupport {
+ private static final Log LOG = LogFactory.getLog(OdeService.class);
+
+ private static final String CONFIG_FILE_NAME = "camel-ode.properties";
+ private final CamelContext camelContext;
+ private String installRoot = "./target";
+ private String workRoot = "./target";
+ private OdeConfigProperties config;
+ private BpelServerImpl server;
+ private ProcessStore store;
+ private MockScheduler scheduler;
+ private Database database;
+ private DataSource dataSource;
+ private TransactionManager transactionManager;
+ private BpelDAOConnectionFactory daoConnectionFactory;
+ private MessageExchangeContext messageExchangeContext;
+ private EndpointReferenceContext endpointReferenceContext;
+ private BindingContext bindingContext;
+
+ public OdeService(CamelContext camelContext) {
+ this.camelContext = camelContext;
+ }
+
+ private void initBpelServer() throws Exception {
+ config = new OdeConfigProperties(new File(getInstallRoot() + "/" + CONFIG_FILE_NAME), CONFIG_FILE_NAME);
+ config.load();
+
+ server = new BpelServerImpl();
+ // We don't want the server to automatically load deployed processes, we'll do that explicitly
+ endpointReferenceContext = new OdeEndpointReferenceContext();
+ messageExchangeContext = new OdeMessageExchangeContext();
+ bindingContext = new OdeBindingContext();
+
+ scheduler = new MockScheduler();
+ scheduler.setJobProcessor(server);
+
+ // support setting using core/max pool size
+// ExecutorService executorService = Executors.newCachedThreadPool();
+// SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(), new JdbcDelegate(dataSource), config.getProperties());
+// scheduler.setJobProcessor(server);
+// scheduler.setExecutorService(executorService);
+// scheduler.setTransactionManager(transactionManager);
+
+// ProcessStoreImpl store = new ProcessStoreImpl(endpointReferenceContext, dataSource, config.getDAOConnectionFactory(), config, false);
+ store = new ProcessStoreImpl(endpointReferenceContext, null, "jpa", config, true);
+// registerExternalVariableModules();
+// store.loadAll();
+
+
+ daoConnectionFactory = new BpelDAOConnectionFactoryImpl(scheduler);
+
+ server.setInMemDaoConnectionFactory(new BpelDAOConnectionFactoryImpl(scheduler, config.getInMemMexTtl()));
+ server.setDaoConnectionFactory(daoConnectionFactory);
+ server.setEndpointReferenceContext(endpointReferenceContext);
+ server.setMessageExchangeContext(messageExchangeContext);
+ server.setBindingContext(bindingContext);
+ server.setScheduler(scheduler);
+ server.setConfigProperties(config.getProperties());
+// server.registerBpelEventListener(new DebugBpelEventListener());
+
+ server.init();
+ }
+
+ private void registerExternalVariableModules() {
+ JdbcExternalVariableModule jdbcext = new JdbcExternalVariableModule();
+ jdbcext.registerDataSource("camel-ode", dataSource);
+ server.registerExternalVariableEngine(jdbcext);
+ }
+
+ public void deployBpel(String dir) throws Exception {
+ String deployxml = dir + "/deploy.xml";
+ URL url = camelContext.getClassResolver().loadResourceAsURL(deployxml);
+ if (url == null) {
+ throw new FileNotFoundException(deployxml);
+ }
+
+ File file = new File(url.toURI().getPath()).getParentFile();
+ Collection<QName> procs = store.deploy(file);
+
+ for (QName procName : procs) {
+ ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(procName);
+ // Test processes always run with in-mem DAOs
+ conf.setTransient(true);
+ server.register(conf);
+ }
+ }
+
+ public String invokeSomething(String name) throws Exception {
+ String answer = null;
+
+ String guid = "12345678";
+ QName serviceName = new QName("http://ode/bpel/unit-test.wsdl", "HelloService");
+ String operation = "hello";
+
+ final Future<MessageExchange.Status> running;
+ MyRoleMessageExchange role;
+ scheduler.beginTransaction();
+ try {
+ role = server.getEngine().createMessageExchange(guid, serviceName, operation);
+ //role.setProperty("isTwoWay", "true");
+ Message msg = role.createMessage(null);
+
+ Document doc = camelContext.getTypeConverter().convertTo(Document.class, "<message><TestPart>" + name + "</TestPart></message>");
+ msg.setMessage(doc.getDocumentElement());
+
+ LOG.info("Sending msg " + msg);
+ running = role.invoke(msg);
+ } finally {
+ scheduler.commitTransaction();
+ }
+
+ running.get(10000, TimeUnit.MILLISECONDS);
+
+ scheduler.beginTransaction();
+ try {
+ MessageExchange.Status status = role.getStatus();
+ LOG.info("Status: " + status);
+
+ Message response = role.getResponse();
+ LOG.info("Response: " + response);
+ String xml = camelContext.getTypeConverter().convertTo(String.class, response.getMessage());
+ LOG.info("Response XML: " + xml);
+
+ answer = xml;
+ } finally {
+ scheduler.commitTransaction();
+ }
+
+ return answer;
+ }
+
+ public String getInstallRoot() {
+ return installRoot;
+ }
+
+ public void setInstallRoot(String installRoot) {
+ this.installRoot = installRoot;
+ }
+
+ public String getWorkRoot() {
+ return workRoot;
+ }
+
+ public void setWorkRoot(String workRoot) {
+ this.workRoot = workRoot;
+ }
+
+ public TransactionManager getTransactionManager() {
+ return transactionManager;
+ }
+
+ public void setTransactionManager(TransactionManager transactionManager) {
+ this.transactionManager = transactionManager;
+ }
+
+ @Override
+ protected void doStart() throws Exception {
+ initBpelServer();
+ server.start();
+ }
+
+ @Override
+ protected void doStop() throws Exception {
+ server.stop();
+ }
+
+}
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/main/java/org/apache/camel/component/ode/OdeService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java (added)
+++ camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,52 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import java.io.File;
+
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+/**
+ * Test which let Camel invoke a bpel process
+ *
+ * @version $Revision$
+ */
+public class OdeCamelHelloWorldTest extends CamelTestSupport {
+
+ @Test
+ public void testOde() throws Exception {
+ OdeService service = new OdeService(context);
+ File dir = new File("").getAbsoluteFile();
+ String path = dir.getAbsolutePath() + "/target/test-classes";
+ String work = dir.getAbsolutePath() + "/target";
+ service.setInstallRoot(path);
+ service.setWorkRoot(work);
+ service.start();
+
+ System.out.println("=============================");
+ String deploy = "bpel/HelloWorld2";
+ service.deployBpel(deploy);
+ System.out.println("=============================");
+ String reply = service.invokeSomething("Bye");
+ System.out.println("=============================");
+ service.stop();
+
+ assertEquals("<message><TestPart>Bye World</TestPart></message>", reply);
+ }
+
+}
Propchange: camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeCamelHelloWorldTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java (added)
+++ camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java Fri Apr 23 09:43:26 2010
@@ -0,0 +1,34 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.ode;
+
+import org.apache.ode.test.BPELTestAbstract;
+import org.junit.Test;
+
+/**
+ * Apache ODE hello world test using Apache ODE test kit
+ *
+ * @version $Revision$
+ */
+public class OdeHelloWorldTest extends BPELTestAbstract {
+
+ @Test
+ public void testPrototype() throws Exception {
+ go("/bpel/HelloWorld2");
+ }
+
+}
Propchange: camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/java/org/apache/camel/component/ode/OdeHelloWorldTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.bpel
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.bpel?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.bpel (added)
+++ camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.bpel Fri Apr 23 09:43:26 2010
@@ -0,0 +1,70 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<process name="HelloWorld2"
+ targetNamespace="http://ode/bpel/unit-test"
+ xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://ode/bpel/unit-test"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:test="http://ode/bpel/unit-test.wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="HelloWorld2.wsdl"
+ namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloPartnerLink"
+ partnerLinkType="test:HelloPartnerLinkType"
+ myRole="me" />
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar" messageType="test:HelloMessage"/>
+ <variable name="tmpVar" type="xsd:string"/>
+ <variable name="tmpDate" type="xsd:dateTime"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloPartnerLink"
+ portType="test:HelloPortType"
+ operation="hello"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assign1">
+ <copy>
+ <from variable="myVar" part="TestPart"/>
+ <to variable="tmpVar"/>
+ </copy>
+ <copy>
+ <from>concat($tmpVar,' World')</from>
+ <to variable="myVar" part="TestPart"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="helloPartnerLink"
+ portType="test:HelloPortType"
+ operation="hello"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl (added)
+++ camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl Fri Apr 23 09:43:26 2010
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<wsdl:definitions
+ targetNamespace="http://ode/bpel/unit-test.wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://ode/bpel/unit-test.wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="TestPart" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+ <wsdl:output message="tns:HelloMessage" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+ namespace="http://ode/bpel/unit-test.wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+ namespace="http://ode/bpel/unit-test.wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+ <soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloPartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloPortType"/>
+ <plnk:role name="you" portType="tns:HelloPortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/HelloWorld2.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml (added)
+++ camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml Fri Apr 23 09:43:26 2010
@@ -0,0 +1,30 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:pns="http://ode/bpel/unit-test"
+ xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+ <process name="pns:HelloWorld2">
+ <active>true</active>
+ <provide partnerLink="helloPartnerLink">
+ <service name="wns:HelloService" port="HelloPort"/>
+ </provide>
+ </process>
+</deploy>
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/deploy.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties (added)
+++ camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties Fri Apr 23 09:43:26 2010
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+namespace=http://ode/bpel/unit-test.wsdl
+service=HelloService
+operation=hello
+request1=<message><TestPart>Hello</TestPart></message>
+response1=.*Hello World.*
+
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/components/camel-ode/src/test/resources/bpel/HelloWorld2/test.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties (added)
+++ camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties Fri Apr 23 09:43:26 2010
@@ -0,0 +1,77 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# camel-ode Configuration Properties
+
+# Process Identifier Namespace [QNAME]
+# Namespace for processes created using the camel-ode integration.
+# This will be the namespace of the process identifiers (PIDs)
+camel-ode.pidNamespace=urn:camel-ode
+
+# Allow Incomplete Deployment ("true","false")
+# Should incomplete deployments be allowed? An incomplete deployment
+# arises when a service unit contains multiple processes and not all
+# of the processes can be deployed. If incomplete deployments are
+# allowed (true), the service unit will report success if any of the
+# processes can be deployed. If not allowed (false), a failure in
+# one process will prevent all processes from being deployed.
+camel-ode.allowIncompleteDeployment=false
+
+# Database Mode ("INTERNAL", "EXTERNAL", "EMBEDDED")
+# What kind of database should ODE use?
+# * "EMBEDDED" - ODE will create its own embbeded database (Derby)
+# and connection pool (Minerva).
+# * "EXTERNAL" - ODE will use an app-server provided database and pool.
+# The "ode-jbi.db.ext.dataSource" property will need to
+# be set.
+# * "INTERNAL" - ODE will create its own connection pool for a user-
+# specified JDBC URL and driver.
+camel-ode.db.mode=EMBEDDED
+
+# External Database [JNDI Name]
+# JNDI Name of the DataSource for the ODE database. This is only
+# used if the "ode-jbi.db.mode" property is set to "EXTERNAL"
+#camel-ode.db.ext.dataSource=java:comp/env/jdbc/ode
+
+# Embedded Database Name [String]
+# Name of the embedded Derby database. This is only used if the
+# "ode-jbi.db.mode" property is set to "EMBEDDED".
+camel-ode.db.emb.name=ode
+
+# Internal Database Configuration
+#camel-ode.db.int.jdbcurl=jdbc:mysql://localhost/ode?user=sa
+#camel-ode.db.int.driver=com.mysql.jdbc.Driver
+
+
+# DAO Connection Factory class.
+# uncomment the following for hibernate.
+#camel-ode.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl
+
+# Class name of the message mapper that should be used to convert message
+# between ODE / NMS.
+# org.apache.ode.jbi.msgmap.JbiWsdl11WrapperMapper - use JBI WSDL 1.1 "wrapped"
+# org.apache.ode.jbi.msgmap.ServiceMixMapper
+# org.apache.ode.jbi.msgmap.DocLitMapper
+#camel-ode.messageMapper=org.apache.ode.jbi.msgmap.ServiceMixMapper
+
+# BPEL Event Listener
+# Uncomment the following for a debug output of BPEL navigation events.
+#ode-jbi.event.listeners=org.apache.ode.bpel.common.evt.DebugBpelEventListener
+#debugeventlistener.dumpToStdOut=on/off
+
Propchange: camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/components/camel-ode/src/test/resources/camel-ode.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: camel/trunk/components/camel-ode/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ode/src/test/resources/log4j.properties?rev=937215&view=auto
==============================================================================
--- camel/trunk/components/camel-ode/src/test/resources/log4j.properties (added)
+++ camel/trunk/components/camel-ode/src/test/resources/log4j.properties Fri Apr 23 09:43:26 2010
@@ -0,0 +1,38 @@
+## ------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ------------------------------------------------------------------------
+
+#
+# The logging properties used for eclipse testing, We want to see debug output on the console.
+#
+log4j.rootLogger=INFO, file
+
+# uncomment the following to enable camel debugging
+#log4j.logger.org.apache.camel.component.ode=TRACE
+#log4j.logger.org.apache.camel=DEBUG
+#log4j.logger.org.apache.ode=DEBUG
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+#log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+# File appender
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.file.file=target/camel-ode-test.log
\ No newline at end of file
Propchange: camel/trunk/components/camel-ode/src/test/resources/log4j.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/components/camel-ode/src/test/resources/log4j.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/components/camel-ode/src/test/resources/log4j.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: camel/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/parent/pom.xml?rev=937215&r1=937214&r2=937215&view=diff
==============================================================================
--- camel/trunk/parent/pom.xml (original)
+++ camel/trunk/parent/pom.xml Fri Apr 23 09:43:26 2010
@@ -81,6 +81,7 @@
<javax-mail-version>1.4.3</javax-mail-version>
<jaxb-version>2.1.12</jaxb-version>
<jaxb-api-version>2.1</jaxb-api-version>
+ <jaxen-version>1.1.1</jaxen-version>
<jetty-version>7.0.1.v20091125</jetty-version>
<jettison-version>1.2</jettison-version>
<jruby-version>1.4.0</jruby-version>
@@ -92,6 +93,7 @@
<mina-version>1.1.7</mina-version>
<mockito-version>1.8.2</mockito-version>
<netty-version>3.1.5.GA</netty-version>
+ <ode-version>1.3.3</ode-version>
<ognl-version>2.7.3_3</ognl-version>
<openjpa-version>1.2.2</openjpa-version>
<pax-exam-version>1.2.0</pax-exam-version>
@@ -119,7 +121,7 @@
<xbean-spring-version>3.5</xbean-spring-version>
<xstream-version>1.3.1</xstream-version>
<xmlsec-version>1.4.2</xmlsec-version>
- <xerces-version>2.8.1</xerces-version>
+ <xerces-version>2.9.1</xerces-version>
<xalan-version>2.7.1</xalan-version>
<xmlbeans-version>2.4.0</xmlbeans-version>