cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1053532 - in /cxf/trunk/rt/transports/http-osgi/src/main: java/org/apache/cxf/transport/http_osgi/OsgiTransportFactory.java resources/META-INF/cxf/osgi/cxf-extension-osgi.xml
Date Wed, 29 Dec 2010 05:34:24 GMT
Author: ffang
Date: Wed Dec 29 05:34:24 2010
New Revision: 1053532

URL: http://svn.apache.org/viewvc?rev=1053532&view=rev
Log:
[CXF-3222]OsgiTransportFactory can't fully initialized problem

Modified:
    cxf/trunk/rt/transports/http-osgi/src/main/java/org/apache/cxf/transport/http_osgi/OsgiTransportFactory.java
    cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/cxf/osgi/cxf-extension-osgi.xml

Modified: cxf/trunk/rt/transports/http-osgi/src/main/java/org/apache/cxf/transport/http_osgi/OsgiTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-osgi/src/main/java/org/apache/cxf/transport/http_osgi/OsgiTransportFactory.java?rev=1053532&r1=1053531&r2=1053532&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-osgi/src/main/java/org/apache/cxf/transport/http_osgi/OsgiTransportFactory.java
(original)
+++ cxf/trunk/rt/transports/http-osgi/src/main/java/org/apache/cxf/transport/http_osgi/OsgiTransportFactory.java
Wed Dec 29 05:34:24 2010
@@ -21,6 +21,9 @@ package org.apache.cxf.transport.http_os
 import java.io.IOException;
 import java.net.URI;
 
+import javax.annotation.Resource;
+
+import org.apache.cxf.Bus;
 import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.transport.Destination;
 import org.apache.cxf.transport.DestinationFactory;
@@ -48,8 +51,10 @@ public class OsgiTransportFactory extend
         return d;
     }
     
-    public void init() {
-        
+      
+    @Resource(name = "cxf")
+    public void setBus(Bus bus) {
+        super.setBus(bus);
     }
 
 }

Modified: cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/cxf/osgi/cxf-extension-osgi.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/cxf/osgi/cxf-extension-osgi.xml?rev=1053532&r1=1053531&r2=1053532&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/cxf/osgi/cxf-extension-osgi.xml
(original)
+++ cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/cxf/osgi/cxf-extension-osgi.xml
Wed Dec 29 05:34:24 2010
@@ -26,21 +26,18 @@ http://www.springframework.org/schema/os
 
     <bean id="org.apache.cxf.transport.http_osgi.OsgiTransportFactory"
           class="org.apache.cxf.transport.http_osgi.OsgiTransportFactory"
-          init-method="init">
+          lazy-init="true">
           
         <constructor-arg ref="osgiDestinationRegistry"/>
 
         <property name="bus" ref="cxf"/>
         <property name="transportIds">
-            <set>
-                <value>http://cxf.apache.org/bindings/xformat</value>
-                <value>http://schemas.xmlsoap.org/soap/http</value>
-                <value>http://schemas.xmlsoap.org/wsdl/http/</value>
-                <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
- 	            <value>http://www.w3.org/2003/05/soap/bindings/HTTP/</value>
- 	            <value>http://cxf.apache.org/transports/http</value>
+            <list>
+                <value>http://cxf.apache.org/transports/http</value>
                 <value>http://cxf.apache.org/transports/http/configuration</value>
-            </set>
+                <value>http://schemas.xmlsoap.org/wsdl/http</value>
+                <value>http://schemas.xmlsoap.org/wsdl/http/</value>
+            </list>
         </property>
     </bean>
 



Mime
View raw message