servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r592644 - in /incubator/servicemix/branches/servicemix-4.0: ./ bundles/commons-logging/ bundles/log4j/ examples/ examples/jaxws/ examples/jaxws/src/ examples/jaxws/src/main/ examples/jaxws/src/main/resources/ examples/jaxws/src/main/resourc...
Date Wed, 07 Nov 2007 07:42:24 GMT
Author: ffang
Date: Tue Nov  6 23:42:16 2007
New Revision: 592644

URL: http://svn.apache.org/viewvc?rev=592644&view=rev
Log:
[SM-1106]  deploying a jaxws spring bean as OSGI bundles which is auto-discoverable by OSGi
NMR/JBI

Added:
    incubator/servicemix/branches/servicemix-4.0/bundles/commons-logging/
    incubator/servicemix/branches/servicemix-4.0/bundles/log4j/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml   (with props)
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/
    incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/
    incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml   (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/interceptors/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java
  (with props)
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/resources/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/test/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/test/java/
    incubator/servicemix/branches/servicemix-4.0/jaxws/src/test/resources/
Modified:
    incubator/servicemix/branches/servicemix-4.0/examples/pom.xml
    incubator/servicemix/branches/servicemix-4.0/itests/src/test/java/org/apache/servicemix/IntegrationTest.java
    incubator/servicemix/branches/servicemix-4.0/nmr/spring/src/test/java/org/apache/servicemix/nmr/spring/BundleExtTest.java
    incubator/servicemix/branches/servicemix-4.0/pom.xml

Added: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml (added)
+++ incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml Tue Nov  6 23:42:16
2007
@@ -0,0 +1,67 @@
+<?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/maven-v4_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</groupId>
+        <artifactId>examples</artifactId>
+        <version>4.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples</groupId>
+    <artifactId>org.apache.servicemix.examples.jaxws</artifactId>
+    <packaging>bundle</packaging>
+    <version>4.0-SNAPSHOT</version>
+    <name>ServiceMix JAXWS Example</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.servicemix.nmr</groupId>
+            <artifactId>org.apache.servicemix.nmr.api</artifactId>
+            <version>4.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.servicemix</groupId>
+            <artifactId>org.apache.servicemix.jaxws</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Export-Package>${pom.artifactId}</Export-Package>
+                        <Import-Package>org.apache.camel</Import-Package>
+                        <DynamicImport-Package>*</DynamicImport-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Propchange: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
(added)
+++ incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,47 @@
+<?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:osgi="http://www.springframework.org/schema/osgi"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:jaxws="http://servicemix.apache.org/jaxws/1.0"
+       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-1.0-m3.xsd
+
+">
+	<!-- jaxws:provider id="providerEndpoint">
+	    <jaxws:nmr ref="nmr"/>
+    </jaxws:provider-->
+    <bean class="org.apache.servicemix.jaxws.JAXWSProvider" id="providerEndpoint">
+        <property name="nmr" ref="nmr"/>
+    </bean>
+    <osgi:service ref="providerEndpoint">
+        <osgi:interfaces>
+            <value>org.apache.servicemix.nmr.api.Endpoint</value>
+        </osgi:interfaces>
+    </osgi:service>
+    <osgi:reference id="nmr" interface="org.apache.servicemix.nmr.api.NMR" mandatory="true"/>
+
+</beans>
\ No newline at end of file

Propchange: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/servicemix/branches/servicemix-4.0/examples/jaxws/src/main/resources/META-INF/spring/jaxws.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/servicemix/branches/servicemix-4.0/examples/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/examples/pom.xml?rev=592644&r1=592643&r2=592644&view=diff
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/examples/pom.xml (original)
+++ incubator/servicemix/branches/servicemix-4.0/examples/pom.xml Tue Nov  6 23:42:16 2007
@@ -36,6 +36,7 @@
 
     <modules>
         <module>intermediary</module>
+        <module>jaxws</module>
     </modules>
 
     <properties>

Modified: incubator/servicemix/branches/servicemix-4.0/itests/src/test/java/org/apache/servicemix/IntegrationTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/itests/src/test/java/org/apache/servicemix/IntegrationTest.java?rev=592644&r1=592643&r2=592644&view=diff
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/itests/src/test/java/org/apache/servicemix/IntegrationTest.java
(original)
+++ incubator/servicemix/branches/servicemix-4.0/itests/src/test/java/org/apache/servicemix/IntegrationTest.java
Tue Nov  6 23:42:16 2007
@@ -16,6 +16,7 @@
  */
 package org.apache.servicemix;
 
+import org.apache.servicemix.nmr.api.Endpoint;
 import org.apache.servicemix.nmr.api.NMR;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceReference;
@@ -72,12 +73,15 @@
             "org.apache.camel,camel-osgi," + camelVersion,
             "org.apache.camel,camel-jms," + camelVersion,
             "org.apache.camel,camel-jhc," + camelVersion,
+            "org.apache.servicemix.jbi,org.apache.servicemix.jbi.api," + servicemixVersion,
             "org.apache.servicemix.nmr,org.apache.servicemix.nmr.api," + servicemixVersion,
             "org.apache.servicemix.nmr,org.apache.servicemix.nmr.core," + servicemixVersion,
 			"org.apache.servicemix.nmr,org.apache.servicemix.nmr.spring," + servicemixVersion,
             "org.apache.servicemix.nmr,org.apache.servicemix.nmr.osgi," + servicemixVersion,
             "org.apache.servicemix,org.apache.servicemix.camel," + servicemixVersion,
+            "org.apache.servicemix,org.apache.servicemix.jaxws," + servicemixVersion,
             "org.apache.servicemix.examples,org.apache.servicemix.examples.intermediary,"
+ servicemixVersion,
+            "org.apache.servicemix.examples,org.apache.servicemix.examples.jaxws," + servicemixVersion,
 		};
 	}
 
@@ -112,10 +116,16 @@
 		waitOnContextCreation("org.apache.servicemix.examples.intermediary");
 		BundleContext context = getBundleContext();
         ServiceReference ref = context.getServiceReference(NMR.class.getName());
+        ServiceReference endpointRef = context.getServiceReference(Endpoint.class.getName());
         assertNotNull("Service Reference is null", ref);
+        assertNotNull("Endpoint Reference is null", endpointRef);
         try {
             NMR nmr = (NMR) context.getService(ref);
             assertNotNull("Cannot find the service", nmr);
+            Endpoint jaxwsProvider = (Endpoint) context.getService(endpointRef);
+            assertNotNull(jaxwsProvider);
+            assertEquals(jaxwsProvider.getClass().getName(), 
+            		"org.apache.servicemix.jaxws.JAXWSProvider");
         } finally {
             context.ungetService(ref);
         }

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml (added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml Tue Nov  6 23:42:16 2007
@@ -0,0 +1,99 @@
+<?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/maven-v4_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</groupId>
+    <artifactId>servicemix</artifactId>
+    <version>4.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix</groupId>
+  <artifactId>org.apache.servicemix.jaxws</artifactId>
+  <packaging>bundle</packaging>
+  <version>4.0-SNAPSHOT</version>
+  <name>org.apache.servicemix.jaxws</name>
+
+  <dependencies>
+        <dependency>
+          <groupId>org.apache.cxf</groupId>
+          <artifactId>cxf-rt-frontend-jaxws</artifactId>
+          <version>${cxf.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.apache.cxf</groupId>
+          <artifactId>cxf-api</artifactId>
+          <version>${cxf.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.apache.servicemix</groupId>
+          <artifactId>org.apache.servicemix.api</artifactId>
+          <version>${project.version}</version>
+        </dependency>
+        <dependency>
+	  <groupId>junit</groupId>
+	  <artifactId>junit</artifactId>
+	  <version>${junit.version}</version>
+	  <scope>test</scope>
+	</dependency>
+        <dependency>
+          <groupId>org.apache.servicemix.jbi</groupId>
+          <artifactId>org.apache.servicemix.jbi.runtime</artifactId>
+        </dependency>
+        
+     
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Export-Package>${pom.artifactId}*</Export-Package>
+            <DynamicImport-Package>*</DynamicImport-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.xbean</groupId>
+        <artifactId>maven-xbean-plugin</artifactId>
+        <version>3.2</version>
+        <executions>
+          <execution>
+            <configuration>
+              <namespace>
+                 http://servicemix.apache.org/jaxws/1.0
+              </namespace>
+            </configuration>
+            <goals>
+              <goal>mapping</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java
(added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,59 @@
+/*
+ * 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.jaxws;
+
+import javax.jbi.servicedesc.ServiceEndpoint;
+import javax.xml.namespace.QName;
+
+import org.apache.servicemix.nmr.api.Channel;
+import org.apache.servicemix.nmr.api.Endpoint;
+import org.apache.servicemix.nmr.api.Exchange;
+import org.w3c.dom.DocumentFragment;
+
+public class JAXWSConsumer implements Endpoint, ServiceEndpoint {
+
+	public void process(Exchange arg0) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	public void setChannel(Channel arg0) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	public DocumentFragment getAsReference(QName arg0) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public String getEndpointName() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public QName[] getInterfaces() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public QName getServiceName() {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+}

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java
(added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.jaxws;
+
+import org.apache.servicemix.nmr.api.Endpoint;
+import org.apache.servicemix.nmr.api.event.EndpointListener;
+
+public class JAXWSConsumerEndpointListener implements EndpointListener {
+
+	public void endpointRegistered(Endpoint arg0) {
+		// TODO Auto-generated method stub
+
+	}
+
+	public void endpointUnregistered(Endpoint arg0) {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSConsumerEndpointListener.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java
(added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,186 @@
+/*
+ * 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.jaxws;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Queue;
+import java.util.concurrent.CopyOnWriteArrayList;
+
+import javax.jbi.servicedesc.ServiceEndpoint;
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.interceptor.Interceptor;
+//import org.apache.cxf.jaxws.EndpointImpl;
+import org.apache.servicemix.nmr.api.Channel;
+import org.apache.servicemix.nmr.api.Endpoint;
+import org.apache.servicemix.nmr.api.Exchange;
+import org.apache.servicemix.nmr.api.NMR;
+import org.w3c.dom.DocumentFragment;
+
+/**
+ * 
+ * @author ffang
+ * @org.apache.xbean.XBean element="provider"
+ */
+
+public class JAXWSProvider implements Endpoint, ServiceEndpoint {
+
+	
+    private Object pojo;
+
+    //private EndpointImpl endpoint;
+
+    private List<Interceptor> in = new CopyOnWriteArrayList<Interceptor>();
+
+    private List<Interceptor> out = new CopyOnWriteArrayList<Interceptor>();
+
+    private List<Interceptor> outFault = new CopyOnWriteArrayList<Interceptor>();
+
+    private List<Interceptor> inFault = new CopyOnWriteArrayList<Interceptor>();
+    
+    private Map properties;
+    
+    private boolean mtomEnabled;
+	private Channel channel;
+    private Queue<Exchange> queue;
+    private QName serviceName;
+    private String endpointName;
+    private NMR nmr;
+
+    public JAXWSProvider() {
+    }
+    
+    /**
+     * @return the pojo
+     */
+    public Object getPojo() {
+        return pojo;
+    }
+
+    /**
+     * @param pojo
+     *            the pojo to set
+     */
+    public void setPojo(Object pojo) {
+        this.pojo = pojo;
+    }
+
+    public List<Interceptor> getOutFaultInterceptors() {
+        return outFault;
+    }
+
+    public List<Interceptor> getInFaultInterceptors() {
+        return inFault;
+    }
+
+    public List<Interceptor> getInInterceptors() {
+        return in;
+    }
+
+    public List<Interceptor> getOutInterceptors() {
+        return out;
+    }
+
+    public void setInInterceptors(List<Interceptor> interceptors) {
+        in = interceptors;
+    }
+
+    public void setInFaultInterceptors(List<Interceptor> interceptors) {
+        inFault = interceptors;
+    }
+
+    public void setOutInterceptors(List<Interceptor> interceptors) {
+        out = interceptors;
+    }
+
+    public void setOutFaultInterceptors(List<Interceptor> interceptors) {
+        outFault = interceptors;
+    }
+
+    public Map getProperties() {
+        return properties;
+    }
+
+    public void setProperties(Map properties) {
+        this.properties = properties;
+    }
+
+    public void setMtomEnabled(boolean mtomEnabled) {
+        this.mtomEnabled = mtomEnabled;
+    }
+
+    public boolean isMtomEnabled() {
+        return mtomEnabled;
+    }
+
+    public void process(Exchange exchange) {
+        if (exchange.getProperty(ServiceEndpoint.class) == null) {
+            exchange.setProperty(ServiceEndpoint.class, this);
+        }
+        queue.offer(exchange);
+    }
+
+    public DocumentFragment getAsReference(QName operationName) {
+        return null;  
+    }
+
+    public QName[] getInterfaces() {
+        return new QName[0];
+    }
+
+    public Channel getChannel() {
+        return channel;
+    }
+
+    public void setChannel(Channel channel) {
+        this.channel = channel;
+    }
+
+    public Queue<Exchange> getQueue() {
+        return queue;
+    }
+
+    public void setQueue(Queue<Exchange> queue) {
+        this.queue = queue;
+    }
+
+    public QName getServiceName() {
+        return serviceName;
+    }
+
+    public void setServiceName(QName serviceName) {
+        this.serviceName = serviceName;
+    }
+
+    public String getEndpointName() {
+        return endpointName;
+    }
+
+    public void setEndpointName(String endpointName) {
+        this.endpointName = endpointName;
+    }
+
+	public void setNmr(NMR nmr) {
+		this.nmr = nmr;
+	}
+
+	public NMR getNmr() {
+		return nmr;
+	}
+
+}

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProvider.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java
(added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.jaxws;
+
+import org.apache.servicemix.nmr.api.Endpoint;
+import org.apache.servicemix.nmr.api.event.EndpointListener;
+
+public class JAXWSProviderEndpointListener implements EndpointListener {
+
+	public void endpointRegistered(Endpoint arg0) {
+		// TODO Auto-generated method stub
+
+	}
+
+	public void endpointUnregistered(Endpoint arg0) {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/JAXWSProviderEndpointListener.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java
(added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.jaxws.spring;
+
+import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
+
+public class JAXWSConsumerDefinitionParser extends AbstractSingleBeanDefinitionParser {
+
+}

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSConsumerDefinitionParser.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java?rev=592644&view=auto
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java
(added)
+++ incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java
Tue Nov  6 23:42:16 2007
@@ -0,0 +1,24 @@
+/*
+ * 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.jaxws.spring;
+
+import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
+
+public class JAXWSProviderDefinitionParser extends
+		AbstractSingleBeanDefinitionParser {
+
+}

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/servicemix-4.0/jaxws/src/main/java/org/apache/servicemix/jaxws/spring/JAXWSProviderDefinitionParser.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/servicemix/branches/servicemix-4.0/nmr/spring/src/test/java/org/apache/servicemix/nmr/spring/BundleExtTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/nmr/spring/src/test/java/org/apache/servicemix/nmr/spring/BundleExtTest.java?rev=592644&r1=592643&r2=592644&view=diff
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/nmr/spring/src/test/java/org/apache/servicemix/nmr/spring/BundleExtTest.java
(original)
+++ incubator/servicemix/branches/servicemix-4.0/nmr/spring/src/test/java/org/apache/servicemix/nmr/spring/BundleExtTest.java
Tue Nov  6 23:42:16 2007
@@ -53,7 +53,7 @@
         ctx.addBeanFactoryPostProcessor(processor);
         ctx.refresh();
         Object str = ctx.getBean("string");
-        //System.err.println(str);
+        System.err.println(str);
         assertNotNull(str);
         assertEquals("bundle://" + bundleId + "///schema.xsd", str);
     }

Modified: incubator/servicemix/branches/servicemix-4.0/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/pom.xml?rev=592644&r1=592643&r2=592644&view=diff
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/pom.xml (original)
+++ incubator/servicemix/branches/servicemix-4.0/pom.xml Tue Nov  6 23:42:16 2007
@@ -40,6 +40,7 @@
         <module>itests</module>
         <module>main</module>
         <module>apache-servicemix</module>
+        <module>jaxws</module>
     </modules>
 
     <distributionManagement>
@@ -69,6 +70,7 @@
         <commons.logging.version>1.1</commons.logging.version>
         <gshell.version>1.0-alpha-1-SNAPSHOT</gshell.version>
         <acegi.version>1.0.0</acegi.version>
+        <cxf.version>2.0.2-incubator</cxf.version>
     </properties>
 
     <repositories>
@@ -160,6 +162,11 @@
 
     <dependencyManagement>
         <dependencies>
+            <dependency>
+                <groupId>org.apache.servicemix</groupId>
+                <artifactId>org.apache.servicemix.jaxws</artifactId>
+                <version>${project.version}</version>
+            </dependency>
             <dependency>
                 <groupId>org.apache.servicemix.nmr</groupId>
                 <artifactId>org.apache.servicemix.nmr.api</artifactId>



Mime
View raw message