You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/08/04 12:34:03 UTC
svn commit: r428687 - in /incubator/servicemix/trunk/samples/bridge: ./
bridge-eip-su/ bridge-eip-su/src/ bridge-eip-su/src/main/
bridge-eip-su/src/main/resources/ bridge-http-su/ bridge-http-su/src/
bridge-http-su/src/main/ bridge-http-su/src/main/res...
Author: gnodet
Date: Fri Aug 4 03:34:02 2006
New Revision: 428687
URL: http://svn.apache.org/viewvc?rev=428687&view=rev
Log:
Add a bridge component corresponding to the http://servicemix.goopen.org/site/creating-a-protocol-bridge.html tutorial
Added:
incubator/servicemix/trunk/samples/bridge/ (with props)
incubator/servicemix/trunk/samples/bridge/bridge-eip-su/ (with props)
incubator/servicemix/trunk/samples/bridge/bridge-eip-su/pom.xml
incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/
incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/
incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/resources/
incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/resources/xbean.xml
incubator/servicemix/trunk/samples/bridge/bridge-http-su/ (with props)
incubator/servicemix/trunk/samples/bridge/bridge-http-su/pom.xml
incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/
incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/
incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/resources/
incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/resources/xbean.xml
incubator/servicemix/trunk/samples/bridge/bridge-jms-su/ (with props)
incubator/servicemix/trunk/samples/bridge/bridge-jms-su/pom.xml
incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/
incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/
incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/resources/
incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/resources/xbean.xml
incubator/servicemix/trunk/samples/bridge/bridge-sa/ (with props)
incubator/servicemix/trunk/samples/bridge/bridge-sa/pom.xml
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/ (with props)
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/pom.xml
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/bridge.xslt
incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/servicemix.xml
incubator/servicemix/trunk/samples/bridge/client.html
incubator/servicemix/trunk/samples/bridge/pom.xml
incubator/servicemix/trunk/samples/bridge/src/
incubator/servicemix/trunk/samples/bridge/src/main/
incubator/servicemix/trunk/samples/bridge/src/main/assembly/
incubator/servicemix/trunk/samples/bridge/src/main/assembly/src.xml
Propchange: incubator/servicemix/trunk/samples/bridge/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 4 03:34:02 2006
@@ -0,0 +1 @@
+target
Propchange: incubator/servicemix/trunk/samples/bridge/bridge-eip-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 4 03:34:02 2006
@@ -0,0 +1 @@
+target
Added: incubator/servicemix/trunk/samples/bridge/bridge-eip-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-eip-su/pom.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-eip-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-eip-su/pom.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,55 @@
+<?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â©c. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>bridge</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-eip-su</artifactId>
+ <packaging>jbi-service-unit</packaging>
+ <name>ServiceMix :: Samples :: Bridge :: EIP</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-eip</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/resources/xbean.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/resources/xbean.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-eip-su/src/main/resources/xbean.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<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>
Propchange: incubator/servicemix/trunk/samples/bridge/bridge-http-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 4 03:34:02 2006
@@ -0,0 +1 @@
+target
Added: incubator/servicemix/trunk/samples/bridge/bridge-http-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-http-su/pom.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-http-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-http-su/pom.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,55 @@
+<?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â©c. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>bridge</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-http-su</artifactId>
+ <packaging>jbi-service-unit</packaging>
+ <name>ServiceMix :: Samples :: Bridge :: HTTP</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-http</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/resources/xbean.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/resources/xbean.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-http-su/src/main/resources/xbean.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<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://localhost:8192/bridge/"
+ defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
+
+</beans>
Propchange: incubator/servicemix/trunk/samples/bridge/bridge-jms-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 4 03:34:02 2006
@@ -0,0 +1 @@
+target
Added: incubator/servicemix/trunk/samples/bridge/bridge-jms-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-jms-su/pom.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-jms-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-jms-su/pom.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,55 @@
+<?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â©c. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>bridge</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-jms-su</artifactId>
+ <packaging>jbi-service-unit</packaging>
+ <name>ServiceMix :: Samples :: Bridge :: JMS</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-jms</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/resources/xbean.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/resources/xbean.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-jms-su/src/main/resources/xbean.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<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="vm://localhost" />
+ </bean>
+
+</beans>
Propchange: incubator/servicemix/trunk/samples/bridge/bridge-sa/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 4 03:34:02 2006
@@ -0,0 +1 @@
+target
Added: incubator/servicemix/trunk/samples/bridge/bridge-sa/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-sa/pom.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-sa/pom.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-sa/pom.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,70 @@
+<?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â©c. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>bridge</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-sa</artifactId>
+ <packaging>jbi-service-assembly</packaging>
+ <name>ServiceMix :: Samples :: Bridge :: SA</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-http-su</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-eip-su</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-xslt-su</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-jms-su</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 4 03:34:02 2006
@@ -0,0 +1 @@
+target
Added: incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/pom.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/pom.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,55 @@
+<?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â©c. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>bridge</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples.bridge</groupId>
+ <artifactId>bridge-xslt-su</artifactId>
+ <packaging>jbi-service-unit</packaging>
+ <name>ServiceMix :: Samples :: Bridge :: XSLT</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-lwcontainer</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/bridge.xslt
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/bridge.xslt?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/bridge.xslt (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/bridge.xslt Fri Aug 4 03:34:02 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.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>
+
Added: incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/servicemix.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/servicemix.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/servicemix.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/bridge-xslt-su/src/main/resources/servicemix.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
+ xmlns:b="http://servicemix.apache.org/samples/bridge">
+
+ <classpath>
+ <location>.</location>
+ <location>lib/servicemix-components-3.0-incubating-SNAPSHOT.jar</location>
+ </classpath>
+
+ <sm:serviceunit id="jbi">
+ <sm:activationSpecs>
+ <sm:activationSpec service="b:xslt" endpoint="endpoint">
+ <sm:component>
+ <bean class="org.apache.servicemix.components.xslt.XsltComponent">
+ <property name="xsltResource" value="classpath:bridge.xslt" />
+ </bean>
+ </sm:component>
+ </sm:activationSpec>
+ </sm:activationSpecs>
+ </sm:serviceunit>
+
+</beans>
Added: incubator/servicemix/trunk/samples/bridge/client.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/client.html?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/client.html (added)
+++ incubator/servicemix/trunk/samples/bridge/client.html Fri Aug 4 03:34:02 2006
@@ -0,0 +1,102 @@
+<html>
+<head>
+<title>ServiceMix SOAP Binding Example</title>
+<script type="text/javascript">
+
+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éer l'objet si ce n'est pas déjà fait */
+ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
+ try {
+ xmlhttp = new XMLHttpRequest();
+ } catch (e) {
+ xmlhttp = false;
+ }
+ }
+
+ if (xmlhttp) {
+ /* on définit ce qui doit se passer quand la page répondra */
+ xmlhttp.onreadystatechange=function() {
+ if (xmlhttp.readyState == 4) { /* 4 : état "complete" */
+ var response = document.getElementById("response");
+ response.value = "STATUS: " + xmlhttp.status + "\n" + xmlhttp.responseText
+ }
+ }
+ }
+ return xmlhttp;
+}
+
+function send() {
+ 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");
+ xmlhttp.open("POST", "http://localhost:8192/bridge/", true);
+ } catch (e) {
+ alert('error opening');
+ }
+ xmlhttp.send(request.value);
+}
+
+</script>
+</head>
+
+<body>
+
+<h1>ServiceMix SOAP Binding Example</h1>
+
+<p>Welcome to the soap binding example for ServiceMix</p>
+
+Perform a POST into the HTTP binding <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>
Added: incubator/servicemix/trunk/samples/bridge/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/pom.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/pom.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/pom.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,71 @@
+<?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â©c. 2005) $ -->
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>samples</artifactId>
+ <version>3.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>bridge</artifactId>
+ <name>ServiceMix :: Samples :: Bridge</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>bridge-http-su</module>
+ <module>bridge-eip-su</module>
+ <module>bridge-xslt-su</module>
+ <module>bridge-jms-su</module>
+ <module>bridge-sa</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.1</version>
+ <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>
+ </plugins>
+ </build>
+</project>
+
Added: incubator/servicemix/trunk/samples/bridge/src/main/assembly/src.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/bridge/src/main/assembly/src.xml?rev=428687&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/bridge/src/main/assembly/src.xml (added)
+++ incubator/servicemix/trunk/samples/bridge/src/main/assembly/src.xml Fri Aug 4 03:34:02 2006
@@ -0,0 +1,20 @@
+<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>src/**/*</include>
+ <include>*/pom.xml</include>
+ <include>*/src/**/*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>