http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/bridge-xslt-su/src/main/resources/xbean.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/bridge/bridge-xslt-su/src/main/resources/xbean.xml b/examples/jbi/bridge/bridge-xslt-su/src/main/resources/xbean.xml deleted file mode 100644 index 46512cd..0000000 --- a/examples/jbi/bridge/bridge-xslt-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:saxon="http://servicemix.apache.org/saxon/1.0" - xmlns:b="http://servicemix.apache.org/samples/bridge"> - - <saxon:xslt service="b:xslt" endpoint="endpoint" - result="string" - resource="classpath:bridge.xslt" /> - <!-- saxon is bugged when dealing with xmlns="xxx" attributes - see http://sourceforge.net/tracker/index.php?func=detail&aid=1558133&group_id=29872&atid=397617 - so just use string instead of DOM output for now --> - -</beans>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/bridge/client.html ---------------------------------------------------------------------- diff --git a/examples/jbi/bridge/client.html b/examples/jbi/bridge/client.html deleted file mode 100644 index b805e3a..0000000 --- a/examples/jbi/bridge/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: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 dv�c. 2005) $ --> -<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�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"); - 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/client/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/bridge/client/pom.xml b/examples/jbi/bridge/client/pom.xml deleted file mode 100644 index 84315aa..0000000 --- a/examples/jbi/bridge/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</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.servicemix.examples.bridge</groupId> - <artifactId>bridge-client</artifactId> - <name>Apache ServiceMix :: Features :: Examples :: Bridge :: 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.bridge.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/client/src/main/java/org/apache/servicemix/samples/bridge/Client.java ---------------------------------------------------------------------- diff --git a/examples/jbi/bridge/client/src/main/java/org/apache/servicemix/samples/bridge/Client.java b/examples/jbi/bridge/client/src/main/java/org/apache/servicemix/samples/bridge/Client.java deleted file mode 100644 index 40d7fb7..0000000 --- a/examples/jbi/bridge/client/src/main/java/org/apache/servicemix/samples/bridge/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.bridge; - -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/bridge/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/client/src/main/resources/org/apache/servicemix/samples/bridge/request.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/bridge/client/src/main/resources/org/apache/servicemix/samples/bridge/request.xml b/examples/jbi/bridge/client/src/main/resources/org/apache/servicemix/samples/bridge/request.xml deleted file mode 100644 index 4049d09..0000000 --- a/examples/jbi/bridge/client/src/main/resources/org/apache/servicemix/samples/bridge/request.xml +++ /dev/null @@ -1,26 +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. ---> -<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/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/bridge/pom.xml b/examples/jbi/bridge/pom.xml deleted file mode 100644 index 4a611cd..0000000 --- a/examples/jbi/bridge/pom.xml +++ /dev/null @@ -1,53 +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> - - <artifactId>bridge</artifactId> - <name>Apache ServiceMix :: Features :: Examples :: 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> - <module>client</module> - </modules> - - <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/camel/README.txt ---------------------------------------------------------------------- diff --git a/examples/jbi/camel/README.txt b/examples/jbi/camel/README.txt deleted file mode 100644 index ad6683d..0000000 --- a/examples/jbi/camel/README.txt +++ /dev/null @@ -1,132 +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 JAVA JBI EXAMPLE -====================== - -Purpose -------- -Write a simple Camel EIP route in Java, and deploy it as a JBI -component. - - -Explanation ------------ -The Camel route is written in Java and can be found in the -MyRouteBuilder.java file, which is located in the following -directory of this example: - - camel-simple-su/src/main/java/org/apache/servicemix/samples - -The contents of the MyRouteBuilder.java file can be described as -follows: - -- Defines a MyRouteBuilder class that extends - org.apache.camel.builder.RouteBuilder. - -- Writes a configure() method that sets up the route. - -- The route does the following: - - 1. Uses the Camel timer component to create a heartbeat event - every second. - 2. Sets the event message body to "Hello World". - 3. Forwards the message to a logger. - - -The Camel configuration file, camel-context.xml, specifies the name of -the Java package containing one or more RouteBuiler classes. When the -application is deployed, Camel searches the specified Java package for -any classes that inherit from RouteBuilder. All such classes are -instantiated and registered with the CamelContext object, thereby -installing and activating the Java routes. The camel-content.xml -configuration file is located in the following directory of this -example: - - camel-simple-su/src/main/resources - - -Prerequisites for Running the Example -------------------------------------- -1. You must have the following installed on your machine: - - - JDK 1.5 or higher - - - Maven 2.0.9 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 ----------------------- -To build this 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 example service assembly, called -camel-sa-${version}.zip, in the camel-sa/target directory. - -You can deploy the example in two ways: - -- Using Hot Deployment - -------------------- - - Copy the camel-sa/target/camel-sa-${version}.zip to the - <servicemix_home>/deploy directory. - - -- Using the ServiceMix Console - ---------------------------- - - Enter the following command: - - osgi:install -s mvn:org.apache.servicemix.examples.camel/camel-sa/${version}/zip - - -Once deployed, you can view the following message in the -log file in the data/log directory of your ServiceMix -installation, or by typing 'log:display' in the ServiceMix -console: - - Exchange[BodyType:String, Body:Hello World!] - - -Changing the Example --------------------- -If you want to change the code or configuration in this example, -use 'mvn install' to rebuild the JBI Service Assembly zip, and -deploy it as described above. - - -More Information ----------------- -For more information on running this example, see: - -http://servicemix.apache.org/camel-example.html http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/camel/camel-sa/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/camel/camel-sa/pom.xml b/examples/jbi/camel/camel-sa/pom.xml deleted file mode 100644 index 00279f7..0000000 --- a/examples/jbi/camel/camel-sa/pom.xml +++ /dev/null @@ -1,57 +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>camel</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.servicemix.examples.camel</groupId> - <artifactId>camel-sa</artifactId> - <packaging>jbi-service-assembly</packaging> - <name>Apache ServiceMix :: Features :: Examples :: Camel :: SA</name> - - <dependencies> - <dependency> - <groupId>org.apache.servicemix</groupId> - <artifactId>servicemix-camel</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.examples.camel</groupId> - <artifactId>camel-simple-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/camel/camel-simple-su/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/camel/camel-simple-su/pom.xml b/examples/jbi/camel/camel-simple-su/pom.xml deleted file mode 100644 index 29f81ab..0000000 --- a/examples/jbi/camel/camel-simple-su/pom.xml +++ /dev/null @@ -1,66 +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>camel</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.servicemix.examples.camel</groupId> - <artifactId>camel-simple-su</artifactId> - <packaging>jbi-service-unit</packaging> - <name>Apache ServiceMix :: Features :: Examples :: Camel :: Camel Simple SU</name> - - <properties> - <componentName>servicemix-camel</componentName> - </properties> - - <dependencies> - <dependency> - <groupId>org.apache.servicemix</groupId> - <artifactId>servicemix-camel</artifactId> - <scope>provided</scope> - </dependency> - </dependencies> - - <build> - <defaultGoal>install</defaultGoal> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </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/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java ---------------------------------------------------------------------- diff --git a/examples/jbi/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java b/examples/jbi/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java deleted file mode 100644 index 39cf220..0000000 --- a/examples/jbi/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.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.samples; - -import org.apache.camel.builder.RouteBuilder; - -/** - * A Camel Router - * - * @version $Revision: 1.1 $ - */ -public class MyRouteBuilder extends RouteBuilder { - public void configure() throws Exception { - - from("timer:myTimerEvent?fixedRate=true") - .setBody(constant("Hello World!")) - .to("log:org.apache.servicemix.samples.camel.ExampleCamelRoute"); - } -} http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/camel/camel-simple-su/src/main/resources/camel-context.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/camel/camel-simple-su/src/main/resources/camel-context.xml b/examples/jbi/camel/camel-simple-su/src/main/resources/camel-context.xml deleted file mode 100644 index 14d2e51..0000000 --- a/examples/jbi/camel/camel-simple-su/src/main/resources/camel-context.xml +++ /dev/null @@ -1,31 +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"> - <package>org.apache.servicemix.samples</package> - </camelContext> - -</beans> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/camel/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/camel/pom.xml b/examples/jbi/camel/pom.xml deleted file mode 100644 index ea1fa7e..0000000 --- a/examples/jbi/camel/pom.xml +++ /dev/null @@ -1,50 +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>camel</artifactId> - <name>Apache ServiceMix :: Features :: Examples :: Camel</name> - <packaging>pom</packaging> - - <modules> - <module>camel-simple-su</module> - <module>camel-sa</module> - </modules> - - <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/cluster/README.txt ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/README.txt b/examples/jbi/cluster/README.txt deleted file mode 100644 index 0bc6a34..0000000 --- a/examples/jbi/cluster/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. - */ - -Welcome to the ServiceMix NMR cluster example -============================================= - -This example shows how to set up a cluster of two ServiceMix NMR and install -a simple example demonstrating the transparent remoting capability. - -Description -=========== - -This example will use three ServiceMix instances: - * the main one will contain an ActiveMQ broker - * the second one will contain a quartz service assembly which will fire JBI exchanges - at repeated intervals. This quartz endpoint is registered as a clustered endpoint - so that those exchanges will go through the cluster engine instead of looking for - the target locally - * the last one will contain a camel route which will receive the exchanges coming from - the previous instances and log them - -The two custer engines deployed on the instances will use a single ActiveMQ broker. It is -possible to set up two different brokers and create a cluster of broker by changing the -configuration of the brokers so that they discover each other. However, this is not the -main topic of this example. - -In order to set up this example, you will first create the ActiveMQ broker, then create two -new ServiceMix instances and deploy the required configurations on to them. For each of -these instances, three files will be put in the deploy folder: - * jms.xml contains a definition of a JMS ConnectionFactory pointing to the ActiveMQ broker - that will be registered in OSGi for the cluster engine to use it - * cluster.xml contains the cluster engine definition. This is not a spring configuration - file, but a feature descriptor (see ServiceMix Kernel User's Guide for more informations). - This descriptor will be user to automatically install the JBI cluster engine and the - required JBI component for this particular instance - * quartz.xml / camel.xml contain the JBI endpoints definition - -Instructions -============ - -First, run "mvn install" in this examples folder, then copy the contents of the "target/instances" -folder from this example into the installation directory of ServiceMix. - -Note that the cluster.xml files refer to the release of ServiceMix Features project. The default -version used in this example is 4.0.0, but if this example is shipped with ServiceMix -you need to edit the pom.xml and replace the <properties><servicemix.features.version> text element -with the version of ServiceMix. - -You should have the following tree: - + apache-servicemix-xxx - |-- ant - |-- bin - |-- etc - |-- examples - |-- instances - | |-- smx1 - | | \-- deploy - | | |-- cluster.xml - | | |-- jms.xml - | | \-- quartz.xml - | \-- smxx - | \-- deploy - | |-- camel.xml - | |-- cluter.xml - | \-- jms.xml - |-- lib - \-- system - -The three commands below will install Apache ActiveMQ on the main instance and create a broker. -In this example, we will only use a single ActiveMQ broker but you can change this topology -to create a broker per JBI container if you want. The required change would be to install -a broker on each of the instances and configure them to build a network of brokers. -See the ActiveMQ web site (http://activemq.apache.org/networks-of-brokers.html) for more -informations. - -If this example is shipped with ServiceMix , you can skip the below features:addUrl and activemq:create-broker command. - -Note that the maven url below may need to be changed. It is pointing to the released version -of Apache ServiceMix 4.x and the version may need to be modified. Something like: - mvn:org.apache.servicemix.features/apache-servicemix/4.2.0/xml/features - -smx@root:/> features:addUrl mvn:org.apache.servicemix/apache-servicemix/4.2.0/xml/features - -smx@root:/> features:install activemq -smx@root:/> activemq:create-broker - -Then, create two new instances of ServiceMix Kernel and start then using the following commands: - -smx@root:/> admin:create smx1 -smx@root:/> admin:start smx1 - -Install the cluster-example-smx1 using the command - -karaf@root> admin:connect smx1 -karaf@smx1> features:install cluster-example-smx1 - -Disconnect from smx1 ( logout or ^D ) - -smx@root:/> admin:create smx2 -smx@root:/> admin:start smx2 - -Install the cluster-example-smx2 using the command - -karaf@root> admin:connect smx2 -karaf@smx2> features:install cluster-example-smx2 - -Disconnect from smx2 ( logout or ^D ) - -Wait for the two new instances to be fully started. This can be easily checked by running the -following command: - -smx@root:/> admin:list - -Both instances should be displayed as either "Starting" or "Started", so you just need to wait -a bit until both are displayed as "Started". - -REMARK : As the quartz.xml and camel.xml bundles are loaded before quartz/camel, it could be necessary to -stop/start the bundle quartz.xml (smx1) and camel.xml (smx2) using commands : - -karaf@root> admin:connect smx1 -karaf@smx1> stop bundle id of quartz.xml -karaf@smx1> start bundle id of quartz.xml - -karaf@root> admin:connect smx2 -karaf@smx1> stop bundle id of camel.xml -karaf@smx1> start bundle id of camel.xml - - -Now, we can make sure the example is working as designed by connecting to the "smx2" instance -and checking the log. - -smx:root:/> admin:connect smx2 -smx:smx2:/> log:display | grep Exchange - -You should see a list of log statements, one for each message received from the "smx1" instance. - - http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/instances/smx1/deploy/cluster.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/instances/smx1/deploy/cluster.xml b/examples/jbi/cluster/instances/smx1/deploy/cluster.xml deleted file mode 100644 index f89a732..0000000 --- a/examples/jbi/cluster/instances/smx1/deploy/cluster.xml +++ /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. ---> -<!-- - This feature descriptor will be loaded by the ServiceMix Kernel deployer and the feature - defined here will be automatically installed. - --> -<features> - <repository>mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features</repository> - <repository>mvn:org.apache.servicemix/apache-servicemix/${servicemix.features.version}/xml/features</repository> - <feature name="cluster-example-smx1"> - <config name="org.apache.servicemix.jbi.cluster.config"> - clusterName=smx1 - </config> - <feature>activemq</feature> - <feature>jbi-cluster</feature> - <feature>servicemix-quartz</feature> - </feature> -</features> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/instances/smx1/deploy/jms.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/instances/smx1/deploy/jms.xml b/examples/jbi/cluster/instances/smx1/deploy/jms.xml deleted file mode 100644 index 21f2ee1..0000000 --- a/examples/jbi/cluster/instances/smx1/deploy/jms.xml +++ /dev/null @@ -1,65 +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. ---> -<!-- - This spring application defines a JMS ConnectionFactory pointing to an ActiveMQ broker at - tcp://localhost:61616 - and register this connection factory in the OSGi registry. - --> -<beans - xmlns="http://www.springframework.org/schema/beans" - xmlns:amq="http://activemq.apache.org/schema/core" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:osgi="http://www.springframework.org/schema/osgi" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd - http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd - http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd - http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - - <!-- Allows us to use system properties as variables in this configuration file --> - <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> - - <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> - <property name="brokerURL" value="tcp://localhost:61616" /> - </bean> - - <bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactoryBean"> - <property name="maxConnections" value="8" /> - <property name="transactionManager" ref="transactionManager" /> - <property name="connectionFactory" ref="activemqConnectionFactory" /> - <property name="resourceName" value="activemq.localhost" /> - </bean> - - <bean id="resourceManager" class="org.apache.activemq.pool.ActiveMQResourceManager" init-method="recoverResource"> - <property name="transactionManager" ref="transactionManager" /> - <property name="connectionFactory" ref="activemqConnectionFactory" /> - <property name="resourceName" value="activemq.localhost" /> - </bean> - - <osgi:reference id="transactionManager" interface="javax.transaction.TransactionManager" /> - - <osgi:service ref="pooledConnectionFactory"> - <osgi:interfaces> - <value>javax.jms.ConnectionFactory</value> - </osgi:interfaces> - <osgi:service-properties> - <entry key="name" value="localhost"/> - </osgi:service-properties> - </osgi:service> - -</beans> - - http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/instances/smx1/deploy/quartz.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/instances/smx1/deploy/quartz.xml b/examples/jbi/cluster/instances/smx1/deploy/quartz.xml deleted file mode 100644 index 0a0aeef..0000000 --- a/examples/jbi/cluster/instances/smx1/deploy/quartz.xml +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.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. ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:util="http://www.springframework.org/schema/util" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:quartz="http://servicemix.apache.org/quartz/1.0" - xmlns:osgi="http://www.springframework.org/schema/osgi" - xmlns:b="http://servicemix.apache.org/examples/camel" - 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://www.springframework.org/schema/osgi - http://www.springframework.org/schema/osgi/spring-osgi.xsd - http://www.springframework.org/schema/osgi-compendium - http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd - http://servicemix.apache.org/quartz/1.0 - http://servicemix.apache.org/quartz/1.0/servicemix-quartz.xsd - http://www.springframework.org/schema/osgi - http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - - <!-- Define a quartz endpoint, firing JBI exchangs every 500 ms --> - <quartz:endpoint id="quartzEndpoint" service="b:service" endpoint="endpoint" targetService="b:receiver"> - <quartz:trigger> - <quartz:simple repeatCount="500" repeatInterval="500" startDelay="2000" /> - </quartz:trigger> - </quartz:endpoint> - - <!-- Export the endpoints and create a service assembly --> - <bean class="org.apache.servicemix.common.osgi.EndpointExporter" /> - - <!-- Register the quartzEndpoint endpoint as a clustered endpoint --> - <bean class="org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration"> - <property name="endpoint" ref="quartzEndpoint" /> - </bean> - -</beans> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/instances/smx2/deploy/camel.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/instances/smx2/deploy/camel.xml b/examples/jbi/cluster/instances/smx2/deploy/camel.xml deleted file mode 100644 index 8ee9898..0000000 --- a/examples/jbi/cluster/instances/smx2/deploy/camel.xml +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.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. ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:util="http://www.springframework.org/schema/util" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:quartz="http://servicemix.apache.org/quartz/1.0" - xmlns:camel="http://camel.apache.org/schema/spring" - xmlns:osgi="http://www.springframework.org/schema/osgi" - xmlns:b="http://servicemix.apache.org/examples/camel" - 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://www.springframework.org/schema/osgi - http://www.springframework.org/schema/osgi/spring-osgi.xsd - http://www.springframework.org/schema/osgi-compendium - http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd - http://servicemix.apache.org/quartz/1.0 - http://servicemix.apache.org/quartz/1.0/servicemix-quartz.xsd - http://camel.apache.org/schema/spring - http://camel.apache.org/schema/spring/camel-spring.xsd - http://www.springframework.org/schema/osgi - http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - - <!-- Define a camel route using a JBI endpoint to receive exchanges from the other instance --> - <camel:camelContext> - <camel:route> - <camel:from uri="jbi:endpoint:http://servicemix.apache.org/examples/camel/receiver/endpoint" /> - <camel:to uri="log:test" /> - </camel:route> - </camel:camelContext> - - <!-- Export the endpoints and create a service assembly --> - <bean class="org.apache.servicemix.common.osgi.EndpointExporter" /> - -</beans> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/instances/smx2/deploy/cluster.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/instances/smx2/deploy/cluster.xml b/examples/jbi/cluster/instances/smx2/deploy/cluster.xml deleted file mode 100644 index f8ef93f..0000000 --- a/examples/jbi/cluster/instances/smx2/deploy/cluster.xml +++ /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. ---> -<!-- - This feature descriptor will be loaded by the ServiceMix Kernel deployer and the feature - defined here will be automatically installed. - --> -<features> - <repository>mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features</repository> - <repository>mvn:org.apache.servicemix/apache-servicemix/${servicemix.features.version}/xml/features</repository> - <feature name="cluster-example-smx2"> - <config name="org.apache.servicemix.jbi.cluster.config"> - clusterName=smx2 - </config> - <feature>activemq</feature> - <feature>jbi-cluster</feature> - <feature>servicemix-camel</feature> - </feature> -</features> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/instances/smx2/deploy/jms.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/instances/smx2/deploy/jms.xml b/examples/jbi/cluster/instances/smx2/deploy/jms.xml deleted file mode 100644 index 0869b1a..0000000 --- a/examples/jbi/cluster/instances/smx2/deploy/jms.xml +++ /dev/null @@ -1,66 +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. ---> -<!-- - This spring application defines a JMS ConnectionFactory pointing to an ActiveMQ broker at - tcp://localhost:61616 - and register this connection factory in the OSGi registry. - --> -<beans - xmlns="http://www.springframework.org/schema/beans" - xmlns:amq="http://activemq.apache.org/schema/core" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:osgi="http://www.springframework.org/schema/osgi" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd - http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd - http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd - http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - - <!-- Allows us to use system properties as variables in this configuration file --> - <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> - - <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> - <property name="brokerURL" value="tcp://localhost:61616" /> - </bean> - - <bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactoryBean"> - <property name="maxConnections" value="8" /> - <property name="transactionManager" ref="transactionManager" /> - <property name="connectionFactory" ref="activemqConnectionFactory" /> - <property name="resourceName" value="activemq.localhost" /> - </bean> - - <bean id="resourceManager" class="org.apache.activemq.pool.ActiveMQResourceManager" init-method="recoverResource"> - <property name="transactionManager" ref="transactionManager" /> - <property name="connectionFactory" ref="activemqConnectionFactory" /> - <property name="resourceName" value="activemq.localhost" /> - </bean> - - <osgi:reference id="transactionManager" interface="javax.transaction.TransactionManager" /> - - <osgi:service ref="pooledConnectionFactory"> - - <osgi:interfaces> - <value>javax.jms.ConnectionFactory</value> - </osgi:interfaces> - <osgi:service-properties> - <entry key="name" value="localhost"/> - </osgi:service-properties> - </osgi:service> - -</beans> - - http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cluster/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cluster/pom.xml b/examples/jbi/cluster/pom.xml deleted file mode 100644 index 5aa4088..0000000 --- a/examples/jbi/cluster/pom.xml +++ /dev/null @@ -1,67 +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.nmr.examples</groupId> - <artifactId>examples</artifactId> - <version>1.5.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.servicemix.nmr.examples</groupId> - <artifactId>org.apache.servicemix.nmr.examples.cluster</artifactId> - <packaging>pom</packaging> - <name>Apache ServiceMix :: NMR :: Examples :: Cluster</name> - - <properties> - <servicemix.nmr.version>${project.version}</servicemix.nmr.version> - <servicemix.features.version>4.2.0</servicemix.features.version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <execution> - <id>copy-resources</id> - <phase>compile</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/target/instances</outputDirectory> - <resources> - <resource> - <directory>instances</directory> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cxf-wsdl-first-osgi-package/README.txt ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/README.txt b/examples/jbi/cxf-wsdl-first-osgi-package/README.txt deleted file mode 100644 index 77d3537..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/README.txt +++ /dev/null @@ -1,224 +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. - */ - -WSDL First OSGi Bundles Example -=============================== - -Purpose -------- -Publish a WSDL-defined web service, packaged as OSGi bundles, -using CXF. - -This example is the same as the cxf-wsdl-first example except it -is deployed as OSGi bundles, whereas the cxf-wsdl-first example -is deployed as a service assembly. - - -Explanation ------------ -The CXF service engine and CXF binding component are used to expose the -web service. Each one is packaged in as an OSGi bundle, as follows: - -1. CXF service engine (see the wsdl-first-cxfse-bundle directory): - - - Contains a copy of the service WSDL file, person.wsdl, in the - src/main/resources directory. - - - The service implementation file, PersonImpl.java, in the - src/main/java/org/apache/servicemix/samples/wsdl_first directory. - It contains JAX-WS annotations that specify which web service - it implements: - - @WebService(serviceName = "PersonService", - targetNamespace = "http://servicemix.apache.org/samples/wsdl-first", - endpointInterface = "org.apache.servicemix.samples.wsdl_first.Person") - - - A configuration file, beans.xml, located in the src/main/resources/ - META-INF/spring directory, which configures the CXF endpoint: - - <cxfse:endpoint> - <cxfse:pojo> - <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" /> - </cxfse:pojo> - </cxfse:endpoint> - -2. CXF binding component (see the wsdl-first-cxfbc-bundle directory): - - - Contains a copy of the service WSDL file, person.wsdl, in the - src/main/resources directory. - - - A configuration file, beans.xml, located in the src/main/resources/ - META-INF/spring directory, which specifies a CXF consumer that will - accept incoming calls for that web service and pass them to the NMR: - - <cxfbc:consumer wsdl="classpath:person.wsdl" - targetService="person:PersonService" - targetInterface="person:Person"/> - - <bean class="org.apache.servicemix.common.osgi.EndpointExporter" /> - - -Prerequisites for Running the Example -------------------------------------- -1. You must have the following installed on your machine: - - - JDK 1.6 or higher - - - 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 Running the Example --------------------------------- -To build and run the example, complete the following steps: - -1. Build the example by opening a command prompt, changing directory - to examples/cxf-wsdl-first-osgi-package (this example) and entering - the following Maven command: - - mvn install - - If all of the required OSGi bundles are available in your local - Maven repository, the example will build very quickly. Otherwise - it may take some time for Maven to download everything it needs. - - The mvn install command builds the example deployment bundle and - copies it to your local Maven repository and to the target directory - of this example. - -2. Install the example by entering the following command in - the ServiceMix console: - - features:install examples-cxf-wsdl-first-osgi-package - - It makes use of the ServiceMix features facility. For more - information about the features facility, see the README.txt file - in the examples parent directory. - -You can browse the WSDL at: - - http://localhost:8092/PersonService?wsdl - -Note, if you use Safari, right click the window and select -'Show Source'. - - -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. Click the Send button to send a request. - - Once the request has been successfully sent, a response similar - to the following should appear in the right-hand panel of the - web page: - - STATUS: 200 - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Body><GetPersonResponse xmlns="http://servicemix.apache.org/ - samples/wsdl-first/types"><personId>world</personId> - <ssn>000-000-0000</ssn><name>Guillaume</name></GetPersonResponse> - </soap:Body> - </soap:Envelope> - -To run the java code client: - -1. Change to the <servicemix_home>/examples/cxf-wsdl-first-osgi-package/ - client directory. - -2. Run the following command: - - mvn compile exec:java - - If the client request is successful, a response similar to the - following should appear in the ServiceMix console: - - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Body><GetPersonResponse xmlns="http://servicemix.apache.org/ - samples/wsdl-first/types"><personId>world</personId> - <ssn>000-000-0000</ssn><name>Guillaume</name></GetPersonResponse> - </soap:Body> - </soap:Envelope> - - -Stopping and Uninstalling the Example -------------------------------------- -To stop the example, you must first know the bundle ID that ServiceMix -has assigned to it. To get the bundle ID, enter the following command -in the ServiceMix console: - - osgi:list - -At the end of the listing, you should see an entry similar to the -following: - - [180] [Active ] [ ] [ 60] ServiceMix :: Samples :: WSDL first :: CXF BC BUNDLE (4.2.0) - [181] [Active ] [ ] [ 60] ServiceMix :: Samples :: WSDL first :: CXF SE BUNDLE (4.2.0) - - -In this case, the bundle IDs are 180 and 181. - -To stop the example, enter the following command in the ServiceMix -console: - - osgi:stop <bundle_id> - -For example: - - osgi:stop 180 - osgi:stop 181 - -To uninstall the example, enter one of the following commands in -the ServiceMix console: - - features:uninstall examples-cxf-wsdl-first-osgi-package - -or - - osgi:uninstall <bundle_id> - - -Viewing the Log Entries ------------------------ -You can view 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 want to change the code or configuration, just use 'mvn install' -to rebuild the OSGi bundles and deploy as before. - - -More Information ----------------- -For more information, see: - - http://cwiki.apache.org/SMX4/creating-an-osgi-bundle-for-deploying-jbi-endpoints.html http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cxf-wsdl-first-osgi-package/client.html ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/client.html b/examples/jbi/cxf-wsdl-first-osgi-package/client.html deleted file mode 100644 index bfd6b5d..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/client.html +++ /dev/null @@ -1,135 +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 WSDL-First Example</title> -<script type="text/javascript"> -var urlToOpen = "http://localhost:8092/PersonService/"; //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�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"); - 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'); - } - xmlhttp.send(request.value); -} - -</script> -</head> - -<body> - -<h1>ServiceMix WSDL-First Example</h1> - -<p>Welcome to the WSDL-First 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"?> -<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types"> - <env:Body> - <tns:GetPerson> - <tns:personId>world</tns:personId> - </tns:GetPerson> - </env:Body> -</env: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/cxf-wsdl-first-osgi-package/client/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/client/pom.xml b/examples/jbi/cxf-wsdl-first-osgi-package/client/pom.xml deleted file mode 100644 index 68c5c5a..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/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>cxf-wsdl-first-osgi-package</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.servicemix.examples.cxf-wsdl-first-osgi-package</groupId> - <artifactId>wsdl-first-client</artifactId> - <name>Apache ServiceMix :: Features :: Examples :: WSDL First OSGi Package :: 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.wsdl_first.Client</mainClass> - <includePluginDependencies>false</includePluginDependencies> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java b/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java deleted file mode 100644 index c6a2a92..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java +++ /dev/null @@ -1,53 +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.wsdl_first; - -import java.io.ByteArrayOutputStream; -import java.io.InputStream; -import java.io.OutputStream; -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:8092/PersonService/") - .openConnection(); - connection.setDoInput(true); - connection.setDoOutput(true); - OutputStream os = connection.getOutputStream(); - // Post the request file. - InputStream fis = getClass().getClassLoader().getResourceAsStream("org/apache/servicemix/samples/wsdl_first/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/jbi/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml b/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml deleted file mode 100644 index 8a56f1c..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types"> - <env:Body> - <tns:GetPerson> - <tns:personId>world</tns:personId> - </tns:GetPerson> - </env:Body> -</env:Envelope> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cxf-wsdl-first-osgi-package/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/pom.xml b/examples/jbi/cxf-wsdl-first-osgi-package/pom.xml deleted file mode 100644 index d0a0328..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/pom.xml +++ /dev/null @@ -1,41 +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>cxf-wsdl-first-osgi-package</artifactId> - <name>Apache ServiceMix :: Features :: Examples :: CXF WSDL First OSGi Package</name> - <packaging>pom</packaging> - - <modules> - <module>wsdl-first-cxfse-bundle</module> - <module>wsdl-first-cxfbc-bundle</module> - <module>client</module> - </modules> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml b/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml deleted file mode 100644 index 95df597..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml +++ /dev/null @@ -1,74 +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>cxf-wsdl-first-osgi-package</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <groupId>org.apache.servicemix.examples.cxf-wsdl-first-osgi-package</groupId> - <artifactId>wsdl-first-cxfbc-bundle</artifactId> - <packaging>bundle</packaging> - <name>Apache ServiceMix :: Features :: Examples :: WSDL First OSGi Package :: CXF BC Bundle</name> - <description>CXF WSDL first example :: CXF BC Bundle</description> - - <dependencies> - <dependency> - <groupId>org.apache.cxf</groupId> - <artifactId>cxf-rt-frontend-jaxws</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-ws-metadata_2.0_spec</artifactId> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-bundle-plugin</artifactId> - <configuration> - <instructions> - <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> - <Import-Package> - javax.jws, - javax.wsdl, - javax.xml.bind, - javax.xml.bind.annotation, - javax.xml.namespace, - javax.xml.soap, - javax.xml.ws, - org.apache.servicemix.cxfbc, - org.springframework.beans.factory.config, - org.apache.servicemix.common.osgi - </Import-Package> - </instructions> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml ---------------------------------------------------------------------- diff --git a/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml b/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml deleted file mode 100644 index a0494af..0000000 --- a/examples/jbi/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" - xmlns:person="http://servicemix.apache.org/samples/wsdl-first" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd"> - - <cxfbc:consumer wsdl="classpath:person.wsdl" - targetService="person:PersonService" - targetInterface="person:Person"/> - <bean class="org.apache.servicemix.common.osgi.EndpointExporter" /> - -</beans>
