You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by em...@apache.org on 2011/01/20 14:21:26 UTC

svn commit: r1061289 - in /cxf/trunk: rt/core/src/main/java/org/apache/cxf/service/factory/ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ systests/jaxws/src/test/java/org/apache/c...

Author: ema
Date: Thu Jan 20 13:21:26 2011
New Revision: 1061289

URL: http://svn.apache.org/viewvc?rev=1061289&view=rev
Log:
[CXF-3209]:revert the change. It introduced another problem

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/AbstractServiceFactoryBean.java
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java
    cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
    cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/AbstractServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/AbstractServiceFactoryBean.java?rev=1061289&r1=1061288&r2=1061289&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/AbstractServiceFactoryBean.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/AbstractServiceFactoryBean.java Thu Jan 20 13:21:26 2011
@@ -49,7 +49,6 @@ public abstract class AbstractServiceFac
     private static final Logger LOG = LogUtils.getL7dLogger(AbstractServiceFactoryBean.class);
     
     protected boolean dataBindingSet;
-    protected boolean needReset = true;
     protected List<String> schemaLocations;
 
     private Bus bus;
@@ -120,10 +119,6 @@ public abstract class AbstractServiceFac
         this.dataBindingSet = dataBinding != null;
     }
 
-    public void setNeedReset(boolean reset) {
-        needReset = reset;
-    }
-    
     public Service getService() {
         return service;
     }

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java?rev=1061289&r1=1061288&r2=1061289&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java Thu Jan 20 13:21:26 2011
@@ -434,10 +434,8 @@ public class ServiceImpl extends Service
             Service service = serviceFactory.getService();
             if (service == null) {
                 serviceFactory.setServiceClass(serviceEndpointInterface);
-                serviceFactory.setBus(getBus());
+                serviceFactory.setBus(getBus());                
                 service = serviceFactory.create();
-                //Add this flag and not need to create service twice
-                serviceFactory.setNeedReset(false);
             }
             
             EndpointInfo ei = ServiceModelUtil.findBestEndpointInfo(portTypeName, service.getServiceInfos());

Modified: cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=1061289&r1=1061288&r2=1061289&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java (original)
+++ cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java Thu Jan 20 13:21:26 2011
@@ -226,9 +226,6 @@ public class ReflectionServiceFactoryBea
         return retVal;
     }
     public void reset() {
-        if (!needReset) {
-            return;
-        }
         if (!dataBindingSet) {
             setDataBinding(null);
         }

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java?rev=1061289&r1=1061288&r2=1061289&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java Thu Jan 20 13:21:26 2011
@@ -1003,21 +1003,4 @@ public class ClientServerTest extends Ab
         ins.close();
     }
     
-    @Test
-    public void testGetPortWithoutPortName() throws Exception {
-        SOAPService service = new SOAPService();
-        assertNotNull(service);
-        Greeter greeter = service.getPort(Greeter.class);
-        updateAddressPort(greeter, PORT);
-        try {
-            greeter.greetMe("test");           
-            String reply = greeter.sayHi();
-            assertNotNull("no response received from service", reply);
-            assertEquals("Bonjour", reply);
-        } catch (UndeclaredThrowableException ex) {
-            throw (Exception)ex.getCause();
-        }
-    }
-    
-    
 }