http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/cxf/camel-config.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/cxf/camel-config.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/cxf/camel-config.xml deleted file mode 100644 index 07dd7fe..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/cxf/camel-config.xml +++ /dev/null @@ -1,72 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xmlns:cxf="http://camel.apache.org/schema/cxf" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd - http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd"> - - <!-- needed cxf imports --> - <import resource="classpath:META-INF/cxf/cxf.xml"/> - - <!-- use a bean to start and stop the real web service (is not Camel specific) --> - <!-- in a real use-case the real web service would be located on another server - but we simulate this in the same JVM --> - <bean id="realWebService" class="org.apache.camel.itest.osgi.cxf.RealWebServiceBean" - init-method="start" destroy-method="stop"> - <!-- this is the url of the real web service we have proxied --> - <property name="url" value="http://localhost:9081/real-webservice"/> - </bean> - - <!-- a bean to enrich the input --> - <bean id="enrichBean" class="org.apache.camel.itest.osgi.cxf.EnrichBean"/> - - <!-- this is the CXF webservice we use as front end --> - <cxf:cxfEndpoint id="reportIncident" - address="http://localhost:9080/camel-itest-osgi/webservices/incident" - wsdlURL="report_incident.wsdl" - endpointName="s:ReportIncidentPort" - serviceName="s:ReportIncidentEndpointService" - xmlns:s="http://reportincident.example.camel.apache.org" - serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint"/> - - <!-- this is the camel route which proxy the web service and forward it to the real web service --> - <camelContext xmlns="http://camel.apache.org/schema/spring"> - - <route> - <!-- cxf consumer using MESSAGE format --> - <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE&synchronous=true"/> - <!-- log input received --> - <to uri="log:input"/> - <!-- enrich the input by ensure the incidentId parameter is set --> - <to uri="bean:enrichBean"/> - <!-- Need to remove the http headers which could confuse the http endpoint --> - <removeHeaders pattern="CamelHttp*"/> - <!-- send proxied request to real web service --> - <to uri="http://localhost:9081/real-webservice?throwExceptionOnFailure=false"/> - <!-- log answer from real web service --> - <to uri="log:output"/> - </route> - - </camelContext> - -</beans>
http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/CamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/CamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/CamelContext.xml deleted file mode 100644 index 9b08ff9..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/CamelContext.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="direct:start"/> - <!-- convert the body to the model which should involve Dozer --> - <camel:convertBodyTo type="org.apache.camel.itest.osgi.dozer.model.Customer"/> - <camel:to uri="mock:result"/> - </camel:route> - </camelContext> - - <bean id="dozerConverterLoader" class="org.apache.camel.converter.dozer.DozerTypeConverterLoader"> - <constructor-arg ref="camelContext"/> - <constructor-arg ref="mapper"/> - </bean> - - <bean id="mapper" class="org.dozer.DozerBeanMapper"> - <property name="mappingFiles"> - <list> - <value>org/apache/camel/itest/osgi/dozer/dozer-mapping.xml</value> - </list> - </property> - </bean> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/dozer-mapping.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/dozer-mapping.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/dozer-mapping.xml deleted file mode 100644 index b4c1ff8..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/dozer/dozer-mapping.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?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. ---> -<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd"> - <mapping> - <class-a>org.apache.camel.itest.osgi.dozer.service.Customer</class-a> - <class-b>org.apache.camel.itest.osgi.dozer.model.Customer</class-b> - <field> - <a>street</a> - <b>address.streetName</b> - </field> - <field> - <a>zip</a> - <b>address.zipCode</b> - </field> - </mapping> -</mappings> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/freemarker/example.ftl ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/freemarker/example.ftl b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/freemarker/example.ftl deleted file mode 100644 index a31b72e..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/freemarker/example.ftl +++ /dev/null @@ -1,19 +0,0 @@ -<#-- -## ------------------------------------------------------------------------ -## 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. -## ------------------------------------------------------------------------ ---> -<hello>${headers.cheese}</hello> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/CamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/CamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/CamelContext.xml deleted file mode 100644 index 51c8a3c..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/CamelContext.xml +++ /dev/null @@ -1,36 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring" depends-on="ftpServer"> - <route> - <from uri="ftp://localhost:21002?user=admin&password=admin"/> - <to uri="mock:result"/> - </route> - </camelContext> - - <bean id="ftpServer" class="org.apache.camel.itest.osgi.ftp.FtpServerBean" - init-method="startServer" destroy-method="shutdownServer"/> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/FtpConsumeTest.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/FtpConsumeTest.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/FtpConsumeTest.xml deleted file mode 100644 index cafb02d..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/ftp/FtpConsumeTest.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <route> - <from uri="ftp://localhost:21003?username=admin&password=admin&readLock=changed"/> - <to uri="mock:result"/> - </route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hdfs/blueprintCamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hdfs/blueprintCamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hdfs/blueprintCamelContext.xml deleted file mode 100644 index 878528b..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hdfs/blueprintCamelContext.xml +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2006 The Apache Software Foundation. - - Licensed 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. ---> -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" - xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" - xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd" - default-activation="lazy"> - - <ext:property-placeholder id="external" placeholder-prefix="$[" placeholder-suffix="]"/> - - <bean id="hdfsOsgiHelper" class="org.apache.camel.component.hdfs2.HdfsOsgiHelper"> - <description> - Bean created as prerequisite for camel-hdfs2 component. It's role is to properly initialize Hadoop's internal - map of file systems which is normally (non-OSGi) initialized using java.util.ServiceLoader. - In OSGi ServiceLoader doesn't see *all* JARs to scan for services. - The map must be initialized with correct URIs - not pure schemes + "://", as the URI is then used to - initialize particular hadoop filesystem initialization which needs more URI components than just scheme. - </description> - <argument> - <map> - <entry key="file:///" value="org.apache.hadoop.fs.LocalFileSystem" /> - <entry key="hdfs://localhost:9000" value="org.apache.hadoop.hdfs.DistributedFileSystem" /> - </map> - </argument> - </bean> - - <bean id="hdfs2" class="org.apache.camel.component.hdfs2.HdfsComponent" depends-on="hdfsOsgiHelper" /> - - <camelContext xmlns="http://camel.apache.org/schema/blueprint" xsi:schemaLocation="http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> - <!-- using Camel properties component and refer to the blueprint property placeholder by its id --> - <propertyPlaceholder id="properties" location="blueprint:external" - prefixToken="[[" suffixToken="]]" - /> - <route> - <from uri="direct:start"/> -<!-- <to uri="hdfs2://localhost:9000/hdfs/test-camel?fileSystemType=HDFS&splitStrategy=BYTES:5,IDLE:1000"/> --> - <to uri="hdfs2://[[karaf.base]]/hdfs/test-camel?fileSystemType=LOCAL&splitStrategy=BYTES:5,IDLE:1000"/> - </route> - <route> -<!-- <from uri="hdfs2://localhost:9000/hdfs/test-camel?pattern=*&initialDelay=2000&fileSystemType=HDFS&chunkSize=5"/> --> - <from uri="hdfs2://[[karaf.base]]/hdfs/test-camel?pattern=*&initialDelay=2000&fileSystemType=LOCAL&chunkSize=5"/> - <to uri="mock:result"/> - </route> - </camelContext> - -</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext.xml deleted file mode 100644 index a7a475a..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"> - <property name="charset" value="iso-8859-1"/> - </bean> - - <bean id="responseBean" class="org.apache.camel.itest.osgi.hl7.HL7MLLPCodecTest"/> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="mina:tcp://127.0.0.1:8888?sync=true&codec=#hl7codec"/> - <camel:process ref="responseBean"/> - <camel:to uri="mock:result"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext2.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext2.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext2.xml deleted file mode 100644 index 521149c..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/hl7/CamelContext2.xml +++ /dev/null @@ -1,43 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"> - <property name="charset" value="iso-8859-1"/> - </bean> - - <bean id="responseBean" class="org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test"/> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="mina:tcp://127.0.0.1:8889?sync=true&codec=#hl7codec"/> - <unmarshal> - <hl7/> - </unmarshal> - <camel:process ref="responseBean"/> - <camel:to uri="mock:result"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jasypt/myproperties.properties ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jasypt/myproperties.properties b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jasypt/myproperties.properties deleted file mode 100644 index d95a13e..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jasypt/myproperties.properties +++ /dev/null @@ -1,22 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- - -# refer to a mock endpoint name by that encrypted password -cool.result=mock:{{cool.password}} - -# here is a password which is encrypted -cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww==) http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jaxb/CamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jaxb/CamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jaxb/CamelContext.xml deleted file mode 100644 index 6b24d18..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jaxb/CamelContext.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="direct:start"/> - <camel:convertBodyTo type="org.apache.camel.itest.osgi.jaxb.PersonType" /> - <camel:to uri="mock:bar"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintBlobStoreService.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintBlobStoreService.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintBlobStoreService.xml deleted file mode 100644 index 9b29c48..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintBlobStoreService.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2006 The Apache Software Foundation. - - Licensed 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. ---> -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" default-activation="lazy"> - - - <!-- BlobStore Service --> - <bean id="contextBuilder" class="org.jclouds.ContextBuilder" factory-method="newBuilder"> - <argument value="transient"/> - </bean> - - <bean id="contextBuilderWithCreds" factory-ref="contextBuilder" factory-method="credentials"> - <argument index="0" value="identity"/> - <argument index="1" value="credential"/> - </bean> - - <bean id="blobStoreContext" factory-ref="contextBuilderWithCreds" factory-method="buildView"> - <argument value="org.jclouds.blobstore.BlobStoreContext"/> - </bean> - - <bean id="blobStore" factory-ref="blobStoreContext" factory-method="getBlobStore"/> - - <service ref="blobStore" interface="org.jclouds.blobstore.BlobStore"/> - -</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintCamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintCamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintCamelContext.xml deleted file mode 100644 index c1253b7..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/blueprintCamelContext.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2006 The Apache Software Foundation. - - Licensed 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. ---> -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" default-activation="lazy"> - - <camelContext xmlns="http://camel.apache.org/schema/blueprint"> - <route> - <from uri="direct:start"/> - <to uri="jclouds:blobstore:transient?container=testContainer"/> - </route> - - <route> - <from uri="jclouds:blobstore:transient?container=testContainer"/> - <to uri="mock:results"/> - </route> - </camelContext> - - <bean id="jclouds" class="org.apache.camel.component.jclouds.JcloudsComponent"> - <property name="blobStores"> - <reference-list availability="mandatory" interface="org.jclouds.blobstore.BlobStore"/> - </property> - </bean> - -</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/springJcloudsRouteContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/springJcloudsRouteContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/springJcloudsRouteContext.xml deleted file mode 100644 index 8775fa2..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jclouds/springJcloudsRouteContext.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?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. - --> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - - <route> - <from uri="direct:start"/> - <to uri="jclouds:blobstore:transient?container=testContainer"/> - </route> - - <route> - <from uri="jclouds:blobstore:transient?container=testContainer"/> - <to uri="mock:results"/> - </route> - </camelContext> - - <bean id="jclouds" class="org.apache.camel.component.jclouds.JcloudsComponent"> - <property name="blobStores"> - <list> - <ref bean="blobStore"/> - </list> - </property> - </bean> - - <!-- BlobStore Service --> - <bean id="contextBuilder" class="org.jclouds.ContextBuilder" factory-method="newBuilder"> - <constructor-arg value="transient"/> - </bean> - - <bean id="contextBuilderWithCreds" factory-bean="contextBuilder" factory-method="credentials"> - <constructor-arg value="identity"/> - <constructor-arg value="credential"/> - </bean> - - <bean id="blobStoreContext" factory-bean="contextBuilderWithCreds" factory-method="buildView"> - <constructor-arg> - <value>org.jclouds.blobstore.BlobStoreContext</value> - </constructor-arg> - </bean> - - <bean id="blobStore" factory-bean="blobStoreContext" factory-method="getBlobStore"/> - </beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext1.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext1.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext1.xml deleted file mode 100644 index 49e4097..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext1.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="jettyProcessor" class="org.apache.camel.itest.osgi.jetty.JettyProcessor"> - <property name="prefix" value="camelContext1"/> - </bean> - - <camelContext id="camelContext1" xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="jetty:http://0.0.0.0:9010/context1/"/> - <camel:process ref="jettyProcessor"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext2.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext2.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext2.xml deleted file mode 100644 index f8c0387..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/CamelContext2.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="jettyProcessor" class="org.apache.camel.itest.osgi.jetty.JettyProcessor"> - <property name="prefix" value="camelContext2"/> - </bean> - - <camelContext id="camelContext2" xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="jetty:http://0.0.0.0:9010/context2/"/> - <camel:process ref="jettyProcessor"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext1.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext1.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext1.xml deleted file mode 100644 index 305e3eb..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext1.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="jettyProcessor" class="org.apache.camel.itest.osgi.jetty.JettyClassloaderCheckProcessor" /> - - <camelContext id="camelContext1" xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="jetty:http://0.0.0.0:9010/camel-context-1/continuation/?useContinuation=true"/> - <camel:process ref="jettyProcessor"/> - </camel:route> - - <camel:route> - <camel:from uri="jetty:http://0.0.0.0:9010/camel-context-1/noContinuation/?useContinuation=false"/> - <camel:process ref="jettyProcessor"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext2.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext2.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext2.xml deleted file mode 100644 index 1de3a83..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jetty/Classloader-CamelContext2.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="jettyProcessor" class="org.apache.camel.itest.osgi.jetty.JettyClassloaderCheckProcessor" /> - - <camelContext id="camelContext2" xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="jetty:http://0.0.0.0:9010/camel-context-2/continuation/?useContinuation=true"/> - <camel:process ref="jettyProcessor"/> - </camel:route> - - <camel:route> - <camel:from uri="jetty:http://0.0.0.0:9010/camel-context-2/noContinuation/?useContinuation=false"/> - <camel:process ref="jettyProcessor"/> - </camel:route> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jms/CamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jms/CamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jms/CamelContext.xml deleted file mode 100644 index 571f1c3..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jms/CamelContext.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <camel:route> - <camel:from uri="activemq:queue:foo"/> - <camel:to uri="mock:result"/> - </camel:route> - </camelContext> - - <bean id="activemq" class="org.apache.camel.component.jms.JmsComponent"> - <property name="connectionFactory"> - <bean class="org.apache.activemq.ActiveMQConnectionFactory"> - <property name="brokerURL" value="vm://localhost?broker.persistent=false"/> - </bean> - </property> - </bean> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/blueprintCamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/blueprintCamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/blueprintCamelContext.xml deleted file mode 100644 index 9faaa64..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/blueprintCamelContext.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2006 The Apache Software Foundation. - - Licensed 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. ---> -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" - xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.1.0" default-activation="lazy"> - - <camelContext xmlns="http://camel.apache.org/schema/blueprint"> - <route> - <from uri="direct:start"/> - <process ref="myProcessor"/> - <to uri="jpa://org.apache.camel.itest.osgi.jpa.SendEmail"/> - </route> - <route> - <from uri="jpa://org.apache.camel.itest.osgi.jpa.SendEmail?consumer.query=select s from SendEmail s where s.id=1"/> - <to uri="mock:result"/> - </route> - </camelContext> - - <bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"> - <jpa:unit unitname="camel" property="enitityManagerFactory"/> - </bean> - - <bean id="myProcessor" class="org.apache.camel.itest.osgi.jpa.MyProcessor"/> - -</blueprint> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/springJpaRouteContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/springJpaRouteContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/springJpaRouteContext.xml deleted file mode 100644 index 68ee080..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jpa/springJpaRouteContext.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?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. ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation= - "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate"> - <property name="transactionManager"> - <bean class="org.springframework.orm.jpa.JpaTransactionManager"> - <property name="entityManagerFactory" ref="entityManagerFactory"/> - </bean> - </property> - </bean> - - <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"> - <property name="persistenceUnitName" value="camel"/> - </bean> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <route> - <from uri="direct:start"/> - <to uri="jpa://org.apache.camel.itest.osgi.jpa.SendEmail"/> - <to uri="mock:result"/> - </route> - </camelContext> -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jsch/CamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jsch/CamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jsch/CamelContext.xml deleted file mode 100644 index 0df5450..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/jsch/CamelContext.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?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. ---> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <route> - <from uri="scp://localhost:21003/target?username=admin&password=admin"/> - <to uri="mock:result"/> - </route> - </camelContext> -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/blueprintCamelContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/blueprintCamelContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/blueprintCamelContext.xml deleted file mode 100644 index df499db..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/blueprintCamelContext.xml +++ /dev/null @@ -1,42 +0,0 @@ -<?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. ---> -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" default-activation="lazy"> - - <camelContext xmlns="http://camel.apache.org/schema/blueprint"> - <route> - <from uri="direct:put"/> - <to uri="krati:consumerspringtest"/> - </route> - - <route> - <from uri="krati:consumerspringtest"/> - <idempotentConsumer messageIdRepositoryRef="kratiRepo"> - <header>CamelKratiKey</header> - <to uri="mock:result"/> - </idempotentConsumer> - <to uri="mock:result"/> - </route> - - </camelContext> - - <bean id="kratiRepo" class="org.apache.camel.component.krati.processor.idempotent.KratiIdempotentRepository"> - <argument value="blueprinttest"/> - <property name="initialCapacity" value="1"/> - </bean> - -</blueprint> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/springKratiRouteContext.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/springKratiRouteContext.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/springKratiRouteContext.xml deleted file mode 100644 index c6246ca..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/krati/springKratiRouteContext.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?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. - --> - -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:camel="http://camel.apache.org/schema/spring" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <route> - <from uri="direct:put"/> - <to uri="krati:consumerspringtest"/> - </route> - - <route> - <from uri="krati:consumerspringtest"/> - <idempotentConsumer messageIdRepositoryRef="kratiRepo"> - <header>CamelKratiKey</header> - <to uri="mock:result"/> - </idempotentConsumer> - <to uri="mock:result"/> - </route> - - </camelContext> - - <bean id="kratiRepo" class="org.apache.camel.component.krati.processor.idempotent.KratiIdempotentRepository"> - <constructor-arg value="springtest"/> - <property name="initialCapacity" value="1"/> - </bean> - -</beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/Account.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/Account.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/Account.xml deleted file mode 100644 index 342485d..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/Account.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?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. ---> -<!DOCTYPE mapper - PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - -<mapper namespace="Account"> - - <!-- Result maps describe the mapping between the columns returned - from a query, and the class properties. A result map isn't - necessary if the columns (or aliases) match to the properties - exactly. --> - <resultMap id="AccountResult" type="Account"> - <result property="id" column="ACC_ID"/> - <result property="firstName" column="ACC_FIRST_NAME"/> - <result property="lastName" column="ACC_LAST_NAME"/> - <result property="emailAddress" column="ACC_EMAIL"/> - </resultMap> - - <!-- Select with no parameters using the result map for Account class. --> - <select id="selectAllAccounts" resultMap="AccountResult"> - select * from ACCOUNT order by ACC_ID - </select> - - <!-- A simpler select example without the result map. Note the -aliases to match the properties of the target result class. --> - <select id="selectAccountById" parameterType="int" resultType="Account"> - select - ACC_ID as id, - ACC_FIRST_NAME as firstName, - ACC_LAST_NAME as lastName, - ACC_EMAIL as emailAddress - from ACCOUNT - where ACC_ID = #{id} - </select> - - <!-- Insert example, using the Account parameter class --> - <insert id="insertAccount" parameterType="Account"> - insert into ACCOUNT ( - ACC_ID, - ACC_FIRST_NAME, - ACC_LAST_NAME, - ACC_EMAIL - ) - values ( - #{id}, #{firstName}, #{lastName}, #{emailAddress} - ) - </insert> - - <!-- Update example, using the Account parameter class --> - <update id="updateAccount" parameterType="Account"> - update ACCOUNT set - ACC_FIRST_NAME = #{firstName}, - ACC_LAST_NAME = #{lastName}, - ACC_EMAIL = #{emailAddress} - where - ACC_ID = #{id} - </update> - - <!-- Delete example, using an integer as the parameter class --> - <delete id="deleteAccountById" parameterType="int"> - delete from ACCOUNT where ACC_ID = #{id} - </delete> - - <!-- START SNIPPET: e1 --> - <select id="selectUnprocessedAccounts" resultMap="AccountResult"> - select * from ACCOUNT where PROCESSED = false - </select> - <!-- END SNIPPET: e1 --> - - <select id="selectProcessedAccounts" resultMap="AccountResult"> - select * from ACCOUNT where PROCESSED = true - </select> - - <!-- START SNIPPET: e2 --> - <update id="consumeAccount" parameterType="Account"> - update ACCOUNT set PROCESSED = true where ACC_ID = #{id} - </update> - <!-- END SNIPPET: e2 --> - - <select id="count" resultType="int"> - select count(*) from ACCOUNT - </select> - -</mapper> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/SqlMapConfig.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/SqlMapConfig.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/SqlMapConfig.xml deleted file mode 100644 index 995fa81..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/mybatis/SqlMapConfig.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?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. ---> - -<!DOCTYPE configuration - PUBLIC "-//mybatis.org//DTD Config 3.0//EN" - "http://mybatis.org/dtd/mybatis-3-config.dtd"> - -<configuration> - - <settings> - <setting name="useGeneratedKeys" value="false"/> - </settings> - - <!-- Use type aliases to avoid typing the full classname every time. --> - <typeAliases> - <typeAlias alias="Account" type="org.apache.camel.itest.osgi.mybatis.Account"/> - </typeAliases> - - <!-- setup environment with JDBC data source --> - <environments default="development"> - <environment id="development"> - <transactionManager type="JDBC"/> - <dataSource type="POOLED"> - <property name="driver" value="org.apache.derby.jdbc.EmbeddedDriver"/> - <property name="url" value="jdbc:derby:target/derby;create=true"/> - </dataSource> - </environment> - </environments> - - <!-- mapping files --> - <mappers> - <mapper resource="org/apache/camel/itest/osgi/mybatis/Account.xml"/> - </mappers> - -</configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/camel-context.xml ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/camel-context.xml b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/camel-context.xml deleted file mode 100755 index cad16f3..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/camel-context.xml +++ /dev/null @@ -1,46 +0,0 @@ -<?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. ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:jaxrs="http://cxf.apache.org/jaxrs" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd - http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd"> - - <import resource="classpath:META-INF/cxf/cxf.xml"/> - <!--import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"/--> - <!--import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/--> - <!-- we use Jetty which works --> - <!--<import resource="classpath:META-INF/cxf/cxf-extension-http.xml"/>--> - <!--<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml"/>--> - - <!-- setup REST server --> - <jaxrs:server id="domainService" address="http://localhost:9000/"> - <jaxrs:serviceBeans> - <ref bean="domainSvc"/> - </jaxrs:serviceBeans> - </jaxrs:server> - - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <!-- no routes needed --> - </camelContext> - - <bean id="domainSvc" class="org.apache.camel.itest.osgi.restlet.example.DomainService"/> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/6b77d012/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/jaxb.index ---------------------------------------------------------------------- diff --git a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/jaxb.index b/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/jaxb.index deleted file mode 100644 index 281d659..0000000 --- a/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/restlet/example/jaxb.index +++ /dev/null @@ -1,21 +0,0 @@ -## ------------------------------------------------------------------------ -## 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. -## ------------------------------------------------------------------------ -CheckDomainAvailabilityRestResponse -CheckDomainAvailabilityResult -CheckDomainRequest -Order -Product