cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaybytez <jayby...@yahoo.com>
Subject Service publishing twice on deployment
Date Mon, 05 Mar 2012 18:31:48 GMT
We are using CXF with JAX-WS annotations.  In the @WebService annotation, I
don't use the serviceName, portName, or name attributes.  And so in the
jaxws:endpoint configuration for CXF, I give the serviceName a different
name.  It appears during deployment that the service gets registered once
based on the @WebService annotations and then registered again based on the
jaxws:endpoint.  Is this the case, is it actually publishing the service
twice?  Should I use serviceName in WebService annotation to match/replace
the jaxws:endpoint configuration:

2012-03-05 09:33:16,091 [[ACTIVE] ExecuteThread: '99' for queue:
'weblogic.kernel.Default (self-tuning)'] INFO
org.apache.cxf.service.factory.ReflectionServiceFactoryBean - Creating
Service {http://foo.com}*ContactPointBusinessServiceEndpointService* from
class com.foo.ContactPointBusinessService
2012-03-05 09:33:16,988 [[ACTIVE] ExecuteThread: '99' for queue:
'weblogic.kernel.Default (self-tuning)'] INFO
org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to
be /ContactPointBusinessService
2012-03-05 09:33:17,254 [[ACTIVE] ExecuteThread: '99' for queue:
'weblogic.kernel.Default (self-tuning)'] INFO
org.apache.cxf.service.factory.ReflectionServiceFactoryBean - Creating
Service {http://foo.com}*ContactPointBusinessServiceService* from class
com.foo.ContactPointBusinessService

	&lt;jaxws:endpoint 
		id="jaxws.ContactPointBusinessService" 
		endpointName="s:ContactPointBusinessServiceEndpointServicePort" 
		*serviceName="s:ContactPointBusinessServiceEndpointService"* 
		implementor="#contactPointBusinessServiceEndpoint" 
		implementorClass="com.foo.ContactPointBusinessService" 
		address="/ContactPointBusinessService"
		xmlns:s="http://foo.com">
		<jaxws:features>
    		     <bean class="org.apache.cxf.feature.LoggingFeature"/>
		</jaxws:features>
		<jaxws:outFaultInterceptors>
    		     <bean class="com.foo.exception.CustomSoapFaultOutInterceptor" />
  		</jaxws:outFaultInterceptors>
	&lt;/jaxws:endpoint>

/**
 *
 * The ContactPointBusinessService Interface class
 *
 * This is a generated file. Do not modify.
 *
 */
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED, use =
SOAPBinding.Use.LITERAL, style = SOAPBinding.Style.DOCUMENT)
*@WebService(targetNamespace = "http://foo.com")*
public interface ContactPointBusinessService extends BaseBusinessService {

--
View this message in context: http://cxf.547215.n5.nabble.com/Service-publishing-twice-on-deployment-tp5538427p5538427.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message