You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ks...@apache.org on 2017/02/08 20:27:47 UTC
[08/25] servicemix-features git commit: Old modules removed
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/Client.java
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/Client.java b/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/Client.java
deleted file mode 100755
index 8890c39..0000000
--- a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/Client.java
+++ /dev/null
@@ -1,54 +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.
- */
-package org.apache.servicemix.examples.cxf;
-
-import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.net.URLConnection;
-
-import org.apache.servicemix.util.FileUtil;
-
-public class Client{
- public static void main(String[] args) {
- try {
- new Client().sendRequest();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public void sendRequest() throws Exception {
- URLConnection connection = new URL("http://localhost:8181/cxf/HelloWorldSecurity")
- .openConnection();
- connection.setDoInput(true);
- connection.setDoOutput(true);
- OutputStream os = connection.getOutputStream();
- // Post the request file.
- InputStream fis = getClass().getClassLoader().getResourceAsStream("org/apache/servicemix/examples/cxf/request.xml");
- FileUtil.copyInputStream(fis, os);
- // Read the response.
- InputStream is = connection.getInputStream();
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- FileUtil.copyInputStream(is, baos);
- System.out.println("the response is =====>");
- System.out.println(baos.toString());
- }
-
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java b/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java
deleted file mode 100644
index f5ecab0..0000000
--- a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java
+++ /dev/null
@@ -1,29 +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.
- */
-package org.apache.servicemix.examples.cxf;
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-
-@WebService(name = "HelloWorld", targetNamespace = "http://cxf.apache.org/wsse/handler/helloworld")
-public interface HelloWorld {
- @WebMethod
- String sayHello(@WebParam(name = "toWhom") String to);
-
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java b/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java
deleted file mode 100755
index 075e4ec..0000000
--- a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java
+++ /dev/null
@@ -1,33 +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.
- */
-package org.apache.servicemix.examples.cxf;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-
-@WebService(name = "HelloWorld", targetNamespace = "http://cxf.apache.org/wsse/handler/helloworld",
- endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
-public class HelloWorldImpl implements HelloWorld {
- @WebMethod
- public String sayHello(@WebParam(name = "toWhom") String toWhom) {
- return "Hello " + toWhom;
-
- }
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java b/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java
deleted file mode 100755
index 8aab9b9..0000000
--- a/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java
+++ /dev/null
@@ -1,41 +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.
- */
-
-package org.apache.servicemix.examples.cxf;
-
-import java.io.IOException;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.UnsupportedCallbackException;
-import org.apache.ws.security.WSPasswordCallback;
-
-public class ServerPasswordCallback implements CallbackHandler {
-
- public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-
- WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
-
- if (pc.getIdentifier().equals("clientx509v1")) {
- pc.setPassword("storepassword");
- }
- }
-
-}
-
-
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/resources/META-INF/spring/beans.xml
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/resources/META-INF/spring/beans.xml b/examples/cxf/cxf-ws-security-signature/src/main/resources/META-INF/spring/beans.xml
deleted file mode 100755
index 124ad12..0000000
--- a/examples/cxf/cxf-ws-security-signature/src/main/resources/META-INF/spring/beans.xml
+++ /dev/null
@@ -1,71 +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.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
-
-
- <bean id="myPasswordCallback" class="org.apache.servicemix.examples.cxf.ServerPasswordCallback"/>
-
- <jaxws:endpoint id="helloWorld"
- implementor="org.apache.servicemix.examples.cxf.HelloWorldImpl"
- address="/HelloWorldSecurity">
- <jaxws:inInterceptors>
- <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
- <constructor-arg>
- <map>
- <entry key="action" value="UsernameToken Signature"/>
- <entry key="passwordType" value="PasswordText"/>
- <entry key="passwordCallbackRef">
- <ref bean="myPasswordCallback"/>
- </entry>
- <entry key="signaturePropRefId" value="wsCryptoProperties"/>
- <entry key="wsCryptoProperties" value-ref="wsCryptoProperties"/>
- </map>
- </constructor-arg>
- </bean>
- <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
- </jaxws:inInterceptors>
- </jaxws:endpoint>
-
- <util:properties id="wsCryptoProperties">
-
- <prop
- key="org.apache.ws.security.crypto.provider">org.apache.ws.security.components.crypto.Merlin</prop>
-
- <prop
- key="org.apache.ws.security.crypto.merlin.keystore.type">jks</prop>
-
- <prop
- key="org.apache.ws.security.crypto.merlin.keystore.password">storepassword</prop>
-
- <prop
- key="org.apache.ws.security.crypto.merlin.file">server-truststore.jks</prop>
- </util:properties>
-
-
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/resources/org/apache/servicemix/examples/cxf/request.xml
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/resources/org/apache/servicemix/examples/cxf/request.xml b/examples/cxf/cxf-ws-security-signature/src/main/resources/org/apache/servicemix/examples/cxf/request.xml
deleted file mode 100644
index 568f684..0000000
--- a/examples/cxf/cxf-ws-security-signature/src/main/resources/org/apache/servicemix/examples/cxf/request.xml
+++ /dev/null
@@ -1 +0,0 @@
-<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="1"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-56A4FA49B9789303C913375794129791">MIICNjCCAZ8CBEo1POgwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCSU4xCzAJBgNVBAgTAk1QMQ8wDQYDVQQHEwZJTkRPUkUxDzANBgNVBAoTBkFwYWNoZTEMMAoGA1UECxMDRGV2MRYwFAYDVQQDEw1NYXlhbmsgTWlzaHJhMB4XDTA5MDYxNDE4MDk0NFoXDTE5MDYxMjE4MDk0NFowYjELMAkGA1UEBhMCSU4xCzAJBgNVBAgTAk1QMQ8wDQYDVQQHEwZJTkRPUkUxDzANBgNVBAoTBkFwYWNoZTEMMAoGA1UECxMDRGV2MRYwFAYDVQQDEw1NYXlhbmsgTWlzaHJhMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdPhcimx7/CFX4H8is
KEKCbRK6Kr+qeCMCby9I/Q/NY1bNqy6nsD+Y5BxSc2yCUnyLsRdmAHIxUwRQ9X5s8FP9+T1nwuoPzBvjcoZqWgDhe9RvydkijuzsFan/PY4oemd5EIoQu80ZpcFqb00xyDY3DkPgymXNsZ2uAM1ccsx90QIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAGXIE7pFNInlyjHnq89zgvHJfZNE44El6Cd5V55JvL+LZUnynU2Y8WaUwD2Qvc1QTr9R7u6nhZ8abyB7TSx3idiN6KUSNtBHOeWUTmfGbAJqO/J6R2A9J20KCvss28D05rRI3z52VQHnMBzgirL6M5ClWBZfl2Q3bNKnOImjoNhK</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-3"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="soap"/></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#id-2"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList=""/></ds:Transform></ds:Transforms><ds:DigestMethod Algori
thm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>kK3EYmWcAMgQmq0d+yhzRuG4Myg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>H0MlO30M1NNQ1M8h1CYvRxWpCKYH9qTkRDpsIZCIdAkjW5lQlWNQ7svUCKpZZzo+dFlS/JeU1dHIXVp7JxB+dLiRBMuuJ4Z4ONwzsBA03Kx+/jNYc3aScLRwW85DMTaVnTqHLIPoO4uhJyUfKicOF3/BHp1A+Ctj5zeBb0LmIN8=</ds:SignatureValue><ds:KeyInfo Id="KI-56A4FA49B9789303C913375794129862"><wsse:SecurityTokenReference wsu:Id="STR-56A4FA49B9789303C913375794129893"><wsse:Reference URI="#X509-56A4FA49B9789303C913375794129791" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature><wsse:UsernameToken wsu:Id="UsernameToken-1"><wsse:Username>clientx509v1</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">storepassword</wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body xmlns
:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-2"><ns2:sayHello xmlns:ns2="http://cxf.apache.org/wsse/handler/helloworld"><toWhom>CXF</toWhom></ns2:sayHello></soap:Body></soap:Envelope>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/cxf-ws-security-signature/src/main/resources/server-truststore.jks
----------------------------------------------------------------------
diff --git a/examples/cxf/cxf-ws-security-signature/src/main/resources/server-truststore.jks b/examples/cxf/cxf-ws-security-signature/src/main/resources/server-truststore.jks
deleted file mode 100644
index 2447028..0000000
Binary files a/examples/cxf/cxf-ws-security-signature/src/main/resources/server-truststore.jks and /dev/null differ
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/cxf/pom.xml
----------------------------------------------------------------------
diff --git a/examples/cxf/pom.xml b/examples/cxf/pom.xml
deleted file mode 100644
index 774f987..0000000
--- a/examples/cxf/pom.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>examples</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>cxf</artifactId>
- <packaging>pom</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: CXF</name>
-
- <modules>
- <module>cxf-osgi</module>
- <module>cxf-jaxrs</module>
- <module>cxf-jaxws-blueprint</module>
- <module>cxf-jaxrs-blueprint</module>
- <module>cxf-ws-addressing</module>
- <module>cxf-ws-security-osgi</module>
- <module>cxf-ws-security-blueprint</module>
- <module>cxf-ws-rm</module>
- <module>cxf-ws-security-signature</module>
- </modules>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/README.txt
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/README.txt b/examples/jbi/bridge-camel/README.txt
deleted file mode 100644
index 5655756..0000000
--- a/examples/jbi/bridge-camel/README.txt
+++ /dev/null
@@ -1,151 +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.
- */
-
-CAMEL BRIDGE EXAMPLE
-====================
-
-Purpose
--------
-Demonstrates how to use Camel and JBI to create a protocol bridge
-that receives a message via HTTP, transforms it and sends it to a
-JMS queue.
-
-This example uses the Camel integration framework. The bridge
-example, on the other hand, uses the older ServiceMix EIP
-implementation to achieve the same result. For more details on
-how Camel compares to ServiceMix EIP, see:
-
-http://camel.apache.org/how-does-camel-compare-to-servicemix-eip.html
-
-
-Explanation
------------
-The bridge consists of three JBI Service Units (SUs) wrapped up
-in a JBI Service Assembly (SA) that is deployed to ServiceMix.
-
-The three SUs can be described as follows:
-
-1. HTTP SU (see the bridge-http-su directory)
- A HTTP endpoint that listens on port 8192 for HTTP requests.
-
-2. JMS SU (see the bridge-jms-su directory)
- An ActiveMQ JMS endpoint to which Camel sends messages.
-
-3. Camel SU (see the bridge-camel-su directory)
- A Camel route that receives messages from the HTTP endpoint,
- transforms them using an XSLT stylesheet, logs them, and then
- sends them to the JMS endpoint.
-
- The Camel routing information is contained in the camel-context.xml
- file, which is located in the ./bridge-camel-su/src/main/resources
- directory, and is shown below:
-
- <route>
- <from uri="jbi:endpoint:http://servicemix.apache.org/samples/bridge/pipeline/endpoint"/>
- <to uri="xslt:bridge.xslt"/>
- <to uri="log:org.apache.servicemix.example?level=INFO"/>
- <to uri="jbi:endpoint:http://servicemix.apache.org/samples/bridge/jms/endpoint"/>
- </route>
-
-The bridge-camel-sa directory contains the POM file that tells
-Maven how to build the SA.
-
-
-Prerequisites for Building and Running this Example
----------------------------------------------------
-1. You must have the following installed on your machine:
-
- - JDK 1.6 or higher.
-
- - Apache Maven 2.2.1 or higher.
-
- For more information, see the README in the top-level examples
- directory.
-
-2. Start ServiceMix by running the following command:
-
- <servicemix_home>/bin/servicemix (on UNIX)
- <servicemix_home>\bin\servicemix (on Windows)
-
-
-Building and Deploying
-----------------------
-This example uses the ServiceMix JBI Maven plugin to build the SUs
-and the SA. To build the example, run the following command
-(from the directory that contains this README):
-
- mvn install
-
-If all of the required OSGi bundles are available in your local Maven
-repository, the example will build quickly. Otherwise it may take
-some time for Maven to download everything it needs.
-
-Once complete, you will find the SA, called bridge-camel-sa-${version}.zip,
-in the bridge-camel-sa/target directory.
-
-You can deploy the SA in two ways:
-
-- Using Hot Deployment
- --------------------
-
- Copy the bridge-camel-sa/target/bridge-camel-sa-${version}.zip
- to the <servicemix_home>/deploy directory.
-
-- Using the ServiceMix Console
- -----------------------------
-
- Type the following command:
-
- osgi:install -s mvn:org.apache.servicemix.examples.bridge-camel/bridge-camel-sa/${version}/zip
-
-
-Running a Client
-----------------
-To run the web client:
-
-1. Open the client.html, which is located in the same directory as this
- README file, in your favorite browser.
-
-2. Send a HTTP request. It will be transformed into a JMS message.
-
- Once the JMS message has been successfully sent to the bridge.output
- queue, you will receive an HTTP STATUS 202 response code from the ESB.
-
-To run the java code client:
-
-1. Change to the <servicemix_home>/examples/bridge-camel/client
- directory.
-
-2. Run the following command:
-
- mvn compile exec:java
-
-
-Viewing the Log Entries
------------------------
-You can view the message that is sent by viewing the entries
-in the log file in the data/log directory of your ServiceMix
-installation, or by typing the following command in the
-ServiceMix console:
-
- log:display
-
-
-Changing the Example
---------------------
-If you change the code or configuration in this example, use 'mvn install'
-to rebuild the SA, and deploy it as described above.
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-camel-sa/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-camel-sa/pom.xml b/examples/jbi/bridge-camel/bridge-camel-sa/pom.xml
deleted file mode 100644
index 585f8da..0000000
--- a/examples/jbi/bridge-camel/bridge-camel-sa/pom.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge-camel</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-camel-sa</artifactId>
- <packaging>jbi-service-assembly</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge Camel :: SA</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-http-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-camel-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-jms-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-camel-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-camel-su/pom.xml b/examples/jbi/bridge-camel/bridge-camel-su/pom.xml
deleted file mode 100644
index 345ac08..0000000
--- a/examples/jbi/bridge-camel/bridge-camel-su/pom.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge-camel</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-camel-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge Camel :: Camel SU</name>
-
- <properties>
- <componentName>servicemix-camel</componentName>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/bridge.xslt
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/bridge.xslt b/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/bridge.xslt
deleted file mode 100644
index 142e2d6..0000000
--- a/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/bridge.xslt
+++ /dev/null
@@ -1,29 +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.
-
--->
-<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 d\u221a�c. 2005) $ -->
-<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:template match="node() | @*">
- <xsl:copy>
- <xsl:apply-templates select="node() | @*"/>
- </xsl:copy>
- </xsl:template>
-</xsl:stylesheet>
-
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/camel-context.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/camel-context.xml b/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/camel-context.xml
deleted file mode 100644
index 0eec3cb..0000000
--- a/examples/jbi/bridge-camel/bridge-camel-su/src/main/resources/camel-context.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"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.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="jbi:endpoint:http://servicemix.apache.org/samples/bridge/pipeline/endpoint"/>
- <to uri="xslt:bridge.xslt"/>
- <to uri="log:org.apache.servicemix.example?level=INFO"/>
- <to uri="jbi:endpoint:http://servicemix.apache.org/samples/bridge/jms/endpoint"/>
- </route>
- </camelContext>
-
-</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-http-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-http-su/pom.xml b/examples/jbi/bridge-camel/bridge-http-su/pom.xml
deleted file mode 100644
index 5180f6a..0000000
--- a/examples/jbi/bridge-camel/bridge-http-su/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge-camel</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-http-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge Camel :: HTTP SU</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-http</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-http-su/src/main/resources/xbean.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-http-su/src/main/resources/xbean.xml b/examples/jbi/bridge-camel/bridge-http-su/src/main/resources/xbean.xml
deleted file mode 100644
index 3833de1..0000000
--- a/examples/jbi/bridge-camel/bridge-http-su/src/main/resources/xbean.xml
+++ /dev/null
@@ -1,30 +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="http://servicemix.apache.org/http/1.0"
- xmlns:b="http://servicemix.apache.org/samples/bridge">
-
- <http:endpoint service="b:http"
- endpoint="endpoint"
- targetService="b:pipeline"
- role="consumer"
- locationURI="http://0.0.0.0:8192/bridge/"
- defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
-
-</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-jms-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-jms-su/pom.xml b/examples/jbi/bridge-camel/bridge-jms-su/pom.xml
deleted file mode 100644
index 8db97b3..0000000
--- a/examples/jbi/bridge-camel/bridge-jms-su/pom.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge-camel</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-jms-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge Camel :: JMS SU</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-jms</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activemq-core</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activeio-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-j2ee-management_1.1_spec</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/bridge-jms-su/src/main/resources/xbean.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/bridge-jms-su/src/main/resources/xbean.xml b/examples/jbi/bridge-camel/bridge-jms-su/src/main/resources/xbean.xml
deleted file mode 100644
index 3e2e9b9..0000000
--- a/examples/jbi/bridge-camel/bridge-jms-su/src/main/resources/xbean.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:jms="http://servicemix.apache.org/jms/1.0"
- xmlns:b="http://servicemix.apache.org/samples/bridge">
-
- <jms:endpoint service="b:jms"
- endpoint="endpoint"
- role="provider"
- destinationStyle="queue"
- jmsProviderDestinationName="bridge.output"
- connectionFactory="#connectionFactory" />
-
- <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
- <property name="brokerURL" value="tcp://localhost:61616" />
- </bean>
-
-</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/client.html
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/client.html b/examples/jbi/bridge-camel/client.html
deleted file mode 100644
index 1b1bc49..0000000
--- a/examples/jbi/bridge-camel/client.html
+++ /dev/null
@@ -1,137 +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.
-
--->
-<!-- $Rev$ $Date$ -->
-<html>
-<head>
-<title>ServiceMix Bridge Example</title>
-<script type="text/javascript">
-var urlToOpen = "http://localhost:8192/bridge/"; //default URL to open
-
-function getHTTPObject() {
- var xmlhttp = false;
-
- /* Compilation conditionnelle d'IE */
- /*@cc_on
- @if (@_jscript_version >= 5)
- try {
- xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (E) {
- xmlhttp = false;
- }
- }
- @else
- xmlhttp = false;
- @end @*/
-
- /* on essaie de cr\ufffder l'objet si ce n'est pas d\ufffdj\ufffd fait */
- if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
- try {
- xmlhttp = new XMLHttpRequest();
- } catch (e) {
- xmlhttp = false;
- }
- }
-
- if (xmlhttp) {
- /* on d\ufffdfinit ce qui doit se passer quand la page r\ufffdpondra */
- xmlhttp.onreadystatechange=function() {
- if (xmlhttp.readyState == 4) { /* 4 : \ufffdtat "complete" */
- var response = document.getElementById("response");
- var responseStatus = "";
- try {
- responseStatus = xmlhttp.status + "";
- } catch (e) {
- responseStatus = "ERROR WHILE RETRIEVING STATUS; MAYBE UNABLE TO CONNECT.";
- }
- response.value = "STATUS: " + responseStatus + "\n" + xmlhttp.responseText;
- }
- }
- }
- return xmlhttp;
-}
-
-function send() {
- if ((document.getElementById("urlToOpen").value != urlToOpen) && (document.getElementById("urlToOpen").value != "")) {
- //use user entry only if it at least can be okay
- urlToOpen = document.getElementById("urlToOpen").value;
- }
- var xmlhttp = getHTTPObject();
- if (!xmlhttp) {
- alert('cound not create XMLHttpRequest object');
- return;
- }
- var request = document.getElementById("request");
- var response = document.getElementById("response");
- try {
- netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead UniversalBrowserWrite");
- } catch (e) {
- }
- try {
- xmlhttp.open("POST", urlToOpen, true);
- } catch (e) {
- alert('Error opening connection');
- }
- xmlhttp.send(request.value);
-}
-
-</script>
-</head>
-
-<body>
-
-<h1>ServiceMix Bridge Example</h1>
-
-<p>Welcome to the Bridge example for ServiceMix.</p>
-
-<p>Perform a POST into the HTTP binding. This requires JavaScript.</p>
-<p>Target: <input type="text" size="50" id="urlToOpen" value=""><script type="text/javascript">document.getElementById("urlToOpen").value = urlToOpen;</script>.</p>
-
-
-<table>
- <tr>
- <td>
- <textarea id="request" style="width:600px;height:400px" onKeyUp="send();"><?xml version="1.0" encoding="UTF-8"?>
-<e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/">
- <e:Body>
- <ping>
- <pingRequest>
- <message xmlns="http://soap">hel lo</message>
- </pingRequest>
- </ping>
- </e:Body>
-</e:Envelope>
-
- </textarea>
- </td>
- <td>
- <textarea id="response" style="width:600px;height:400px">
- </textarea>
- </td>
- </tr>
- <tr>
- <td colspan=2>
- <input type="button" value="Send" onClick="send();"/>
- </td>
- </tr>
-</table>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/client/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/client/pom.xml b/examples/jbi/bridge-camel/client/pom.xml
deleted file mode 100644
index a5145a9..0000000
--- a/examples/jbi/bridge-camel/client/pom.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge-camel</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge-camel</groupId>
- <artifactId>bridge-camel-client</artifactId>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge Camel :: Client</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-utils</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <configuration>
- <mainClass>org.apache.servicemix.samples.bridgecamel.Client</mainClass>
- <includePluginDependencies>false</includePluginDependencies>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/client/src/main/java/org/apache/servicemix/samples/bridgecamel/Client.java
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/client/src/main/java/org/apache/servicemix/samples/bridgecamel/Client.java b/examples/jbi/bridge-camel/client/src/main/java/org/apache/servicemix/samples/bridgecamel/Client.java
deleted file mode 100644
index 79558c7..0000000
--- a/examples/jbi/bridge-camel/client/src/main/java/org/apache/servicemix/samples/bridgecamel/Client.java
+++ /dev/null
@@ -1,60 +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.
- */
-package org.apache.servicemix.samples.bridgecamel;
-
-import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.net.URLConnection;
-
-import org.apache.servicemix.util.FileUtil;
-
-public class Client{
- public static void main(String[] args) {
- try {
- new Client().sendRequest();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public void sendRequest() throws Exception {
- URLConnection connection = new URL("http://localhost:8192/bridge/")
- .openConnection();
- connection.setDoInput(true);
- connection.setDoOutput(true);
- OutputStream os = connection.getOutputStream();
- // Post the request file.
- InputStream fis = getClass().getClassLoader().getResourceAsStream("org/apache/servicemix/samples/bridgecamel/request.xml");
- FileUtil.copyInputStream(fis, os);
- // Read the response.
- InputStream is = connection.getInputStream();
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- FileUtil.copyInputStream(is, baos);
- System.out.println("the response is =====>");
- System.out.println(baos.toString());
- if (connection instanceof HttpURLConnection) {
- int retCode = ((HttpURLConnection)connection).getResponseCode();
- System.out.println("the response code is =====>");//expected is 202 for this example
- System.out.println(retCode);
- }
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/client/src/main/resources/org/apache/servicemix/samples/bridgecamel/request.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/client/src/main/resources/org/apache/servicemix/samples/bridgecamel/request.xml b/examples/jbi/bridge-camel/client/src/main/resources/org/apache/servicemix/samples/bridgecamel/request.xml
deleted file mode 100644
index 0ba5ecc..0000000
--- a/examples/jbi/bridge-camel/client/src/main/resources/org/apache/servicemix/samples/bridgecamel/request.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/">
- <e:Body>
- <ping>
- <pingRequest>
- <message xmlns="http://soap">hel lo</message>
- </pingRequest>
- </ping>
- </e:Body>
-</e:Envelope>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/pom.xml b/examples/jbi/bridge-camel/pom.xml
deleted file mode 100644
index acffca4..0000000
--- a/examples/jbi/bridge-camel/pom.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>jbi</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge-camel</artifactId>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge Camel</name>
- <packaging>pom</packaging>
-
- <modules>
- <module>bridge-jms-su</module>
- <module>bridge-http-su</module>
- <module>bridge-camel-su</module>
- <module>bridge-camel-sa</module>
- <module>client</module>
- </modules>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <inherited>false</inherited>
- <executions>
- <execution>
- <id>src</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>src/main/assembly/src.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge-camel/src/main/assembly/src.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge-camel/src/main/assembly/src.xml b/examples/jbi/bridge-camel/src/main/assembly/src.xml
deleted file mode 100644
index f10b298..0000000
--- a/examples/jbi/bridge-camel/src/main/assembly/src.xml
+++ /dev/null
@@ -1,45 +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.
- -->
-<assembly>
-
- <id>src</id>
-
- <formats>
- <format>tar.gz</format>
- <format>zip</format>
- </formats>
-
- <fileSets>
-
- <fileSet>
- <includes>
- <include>README*</include>
- <include>LICENSE*</include>
- <include>NOTICE*</include>
- <include>pom.xml</include>
- <include>*.html</include>
- <include>src/**/*</include>
- <include>*/pom.xml</include>
- <include>*/src/**/*</include>
- </includes>
- </fileSet>
-
- </fileSets>
-
-</assembly>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/README.txt
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/README.txt b/examples/jbi/bridge/README.txt
deleted file mode 100644
index 7358be0..0000000
--- a/examples/jbi/bridge/README.txt
+++ /dev/null
@@ -1,161 +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.
- */
-
-EIP JBI BRIDGE EXAMPLE
-======================
-
-Purpose
--------
-Use the original ServiceMix EIP component and JBI to create a protocol
-bridge that receives a message via HTTP, transforms it, and sends it to
-a JMS queue.
-
-This example uses the older ServiceMix EIP implementation.
-The bridge-camel example, on the other hand, uses Camel to achieve
-the same result. For more details on how Camel compares to ServiceMix EIP,
-see: http://camel.apache.org/how-does-camel-compare-to-servicemix-eip.html
-
-
-Explanation
------------
-The protocol bridge consists of four JBI Service Units (SUs)
-wrapped up in a JBI Service Assembly (SA). The SA is deployed
-to ServiceMix.
-
-The SUs can be described as follows:
-
-1. HTTP SU (see the bridge-http-su directory)
- A HTTP endpoint that listens on port 8192 for HTTP requests.
-
-2. EIP Pipeline SU (see the bridge-eip-su directory)
- An EIP pipeline that receives HTTP requests, forwards them to
- the XSLT transform, and takes the results of the transform and
- passes them to the ActiveMQ JMS endpoint.
-
-3. XSLT SU (see the bridge-xslt-su directory)
- Uses the bridge.xslt XSL file to convert the message into the
- format required by JMS. The example XSLT performs a very basic
- transformation and is for demonstration purposes only.
-
-4. JMS SU (see the bridge-jms-su directory)
- An ActiveMQ JMS endpoint to which the EIP pipeline sends
- messages.
-
-The configuration for each SU is contained in the xbean.xml file
-that is located in the src/main/resources directory for that SU.
-For example, configuration for the HTTP SU is contained in the
-xbean.xml file located in the bridge-http-su/src/main/resources
-directory.
-
-The bridge-sa directory contains the POM file that tells Maven how
-to build the SA for this example.
-
-
-Prerequisites for Running this Example
---------------------------------------
-1. You must have the following installed on your machine:
-
- - JDK 1.6 or higher.
-
- - Apache Maven 2.2.1 or higher.
-
- For more information, see the README in the top-level
- examples directory.
-
-
-2. Start ServiceMix by running the following command:
-
- <servicemix_home>/bin/servicemix (on UNIX)
- <servicemix_home>\bin\servicemix (on Windows)
-
-
-Building and Deploying
-----------------------
-This example uses the ServiceMix JBI Maven plugin to build the
-SUs and the SA. To build the example, run the following command
-(from the directory that contains this README):
-
- mvn install
-
-
-If all of the required bundles are available in your local
-Maven repository, the example will build quickly. Otherwise
-it may take some time for Maven to download everything it needs.
-
-Once complete, you will find the SA, called bridge-sa-${version}.zip,
-in the bridge-sa/target directory of this example.
-
-You can deploy the SA in two ways:
-
-- Using Hot Deployment
- --------------------
-
- Copy the bridge-sa-${version}.zip file to the
- <servicemix_home>/deploy directory.
-
-- Using the ServiceMix Console
- ----------------------------
-
- Type the following command:
-
- osgi:install -s mvn:org.apache.servicemix.examples.bridge/bridge-sa/${version}/zip
-
-
-Running a Client
-----------------
-To run the web client:
-
-1. Open the client.html file, which is located in the same directory
- as this README file, in your favorite browser.
-
-2. Send a HTTP request. It will be transformed into a JMS message.
-
- Once the JMS message is sent to the bridge.output queue, you will
- receive a HTTP STATUS 202 response code from the ESB.
-
-
-To run the java code client:
-
-1. Change to the <servicemix_home>/examples/bridge/client directory.
-
-2. Run the following command:
-
- mvn compile exec:java
-
-
-Viewing the Log Entries
------------------------
-You can view the message that is sent by viewing the entries
-in the log file in the data/log directory of your ServiceMix
-installation, or by typing the following command in the
-ServiceMix console:
-
- log:display
-
-
-Changing the Example
---------------------
-If you change the code or configuration in this example, use
-'mvn install' to rebuild the JBI SA zip, and deploy it as described
-above.
-
-
-More Information
-----------------
-For more information about this example, see:
-
- http://servicemix.apache.org/creating-a-protocol-bridge.html
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-eip-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-eip-su/pom.xml b/examples/jbi/bridge/bridge-eip-su/pom.xml
deleted file mode 100644
index 307be1e..0000000
--- a/examples/jbi/bridge/bridge-eip-su/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-eip-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge :: EIP SU</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-eip</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-eip-su/src/main/resources/xbean.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-eip-su/src/main/resources/xbean.xml b/examples/jbi/bridge/bridge-eip-su/src/main/resources/xbean.xml
deleted file mode 100644
index c5895dc..0000000
--- a/examples/jbi/bridge/bridge-eip-su/src/main/resources/xbean.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:eip="http://servicemix.apache.org/eip/1.0"
- xmlns:b="http://servicemix.apache.org/samples/bridge">
-
- <eip:pipeline service="b:pipeline" endpoint="endpoint">
- <eip:transformer>
- <eip:exchange-target service="b:xslt" />
- </eip:transformer>
- <eip:target>
- <eip:exchange-target service="b:jms" />
- </eip:target>
- </eip:pipeline>
-
-</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-http-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-http-su/pom.xml b/examples/jbi/bridge/bridge-http-su/pom.xml
deleted file mode 100644
index ad8bf51..0000000
--- a/examples/jbi/bridge/bridge-http-su/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-http-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge :: HTTP SU</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-http</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-http-su/src/main/resources/xbean.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-http-su/src/main/resources/xbean.xml b/examples/jbi/bridge/bridge-http-su/src/main/resources/xbean.xml
deleted file mode 100644
index 4ce0c6b..0000000
--- a/examples/jbi/bridge/bridge-http-su/src/main/resources/xbean.xml
+++ /dev/null
@@ -1,30 +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="http://servicemix.apache.org/http/1.0"
- xmlns:b="http://servicemix.apache.org/samples/bridge">
-
- <http:endpoint service="b:http"
- endpoint="endpoint"
- targetService="b:pipeline"
- role="consumer"
- locationURI="http://0.0.0.0:8192/bridge/"
- defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
-
-</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-jms-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-jms-su/pom.xml b/examples/jbi/bridge/bridge-jms-su/pom.xml
deleted file mode 100644
index 8eb6649..0000000
--- a/examples/jbi/bridge/bridge-jms-su/pom.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-jms-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge :: JMS SU</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-jms</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activemq-core</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activeio-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-j2ee-management_1.1_spec</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-jms-su/src/main/resources/xbean.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-jms-su/src/main/resources/xbean.xml b/examples/jbi/bridge/bridge-jms-su/src/main/resources/xbean.xml
deleted file mode 100644
index c573b78..0000000
--- a/examples/jbi/bridge/bridge-jms-su/src/main/resources/xbean.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:jms="http://servicemix.apache.org/jms/1.0"
- xmlns:b="http://servicemix.apache.org/samples/bridge">
-
- <jms:endpoint service="b:jms"
- endpoint="endpoint"
- role="provider"
- destinationStyle="queue"
- jmsProviderDestinationName="bridge.output"
- connectionFactory="#connectionFactory" />
-
- <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
- <property name="brokerURL" value="failover:(tcp://localhost:61616)" />
- </bean>
-
-</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-sa/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-sa/pom.xml b/examples/jbi/bridge/bridge-sa/pom.xml
deleted file mode 100644
index 35e60c2..0000000
--- a/examples/jbi/bridge/bridge-sa/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-sa</artifactId>
- <packaging>jbi-service-assembly</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge :: SA</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-http-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-eip-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-xslt-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-jms-su</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-xslt-su/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-xslt-su/pom.xml b/examples/jbi/bridge/bridge-xslt-su/pom.xml
deleted file mode 100644
index ff8d108..0000000
--- a/examples/jbi/bridge/bridge-xslt-su/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.examples</groupId>
- <artifactId>bridge</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.apache.servicemix.examples.bridge</groupId>
- <artifactId>bridge-xslt-su</artifactId>
- <packaging>jbi-service-unit</packaging>
- <name>Apache ServiceMix :: Features :: Examples :: Bridge :: XSLT SU</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-saxon</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>jbi-maven-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-xslt-su/src/main/resources/bridge.xslt
----------------------------------------------------------------------
diff --git a/examples/jbi/bridge/bridge-xslt-su/src/main/resources/bridge.xslt b/examples/jbi/bridge/bridge-xslt-su/src/main/resources/bridge.xslt
deleted file mode 100644
index 5e0b094..0000000
--- a/examples/jbi/bridge/bridge-xslt-su/src/main/resources/bridge.xslt
+++ /dev/null
@@ -1,29 +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.
-
--->
-<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 d\u221a�c. 2005) $ -->
-<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:template match="node() | @*">
- <xsl:copy>
- <xsl:apply-templates select="node() | @*"/>
- </xsl:copy>
- </xsl:template>
-</xsl:stylesheet>
-