This updated configuration gives the same error. It's almost identical to my
HTTP endpoint except for the address and jmsConfig feature... Namespaces,
wsdl, servicename, and endpoint all match the WSDL but I get the same error
(Caused by: org.apache.cxf.configuration.ConfigurationException: You can
only use JMSConfigFeature with the jms transport). Any help would be
greatly appreciated as I'm under some tight deadlines to get this stuff
working.
Thanks,
John
<jaxws:endpoint id="JMSSingleSignOnServicesImpl_1_0_0"
wsdlLocation="SingleSignOn_1_0_0.wsdl"
serviceName="as:SingleSignOnServicePorts"
endpointName="as:SingleSignOnService"
xmlns:as="http://www.foo.com/enterpriseservices/accountservices/singlesignon_1_0_0"
address="jms://"
implementor="#singleSignOnServicesImpl_1_0_0">
<jaxws:features>
<bean
class="org.apache.cxf.transport.jms.JMSConfigFeature"
p:jmsConfig-ref="jmsConfig" />
</jaxws:features>
</jaxws:endpoint>
<bean id="wrappedConnectionFactory"
class="org.springframework.jms.connection.SingleConnectionFactory">
<property name="targetConnectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL"
value="tcp://localhost:61616" />
</bean>
</property>
</bean>
<bean id="jndiDestinationResolver"
class="org.springframework.jms.support.destination.JndiDestinationResolver">
<property name="jndiTemplate" ref="jndiTemplate"/>
</bean>
<bean id="jmsConfig" class="org.apache.cxf.transport.jms.JMSConfiguration"
p:connectionFactory-ref="wrappedConnectionFactory"
p:destinationResolver-ref="jndiDestinationResolver"
p:targetDestination="accountServicesRequestQueue"
p:replyDestination="accountServicesResponseQueue">
</bean>
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop
key="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</prop>
<prop key="java.naming.provider.url">tcp://localhost:61616</prop>
<!-- lets register some destinations -->
<prop
key="queue.accountServicesRequestQueue">accountServicesRequestQueue</prop>
<prop
key="queue.accountServicesResponseQueue">accountServicesResponseQueue</prop>
</props>
</property>
</bean>
jp4 wrote:
>
> I am currently using cxf 2.2. I have several http endpoints (which are
> generated from wsdl). These endpoints work great since dumping the jboss
> native stack!
>
> Now I'd like one of my endpoints to support both http as well as jms.
> I've read the cxf docs, but it's unclear whether or not I can do this
> without modifying the WSDL. Ideally, I'd just like to configure another
> endpoint which listens on a request queue (and delegates to the endpoint
> that I have already configured in spring).
>
> I have the following configuration which throws the following exception on
> startup... I have configured the address="jms://". Can anyone point me
> in the right direction?
>
> Thanks,
>
> John
>
> Caused by: org.apache.cxf.configuration.ConfigurationException: You can
> only use JMSConfigFeature with the jms transport
> at
> org.apache.cxf.transport.jms.JMSConfigFeature.initialize(JMSConfigFeature.java:61)
>
>
> <bean id="wsCtx"
> class="org.apache.cxf.jaxws.context.WebServiceContextImpl"/>
>
> <jaxws:endpoint id="JMSSingleSignOnServicesImpl_1_0_0"
> address="jms://"
>
> implementor="#singleSignOnServicesImpl_1_0_0">
> <jaxws:features>
> <bean
> class="org.apache.cxf.transport.jms.JMSConfigFeature"
> p:jmsConfig-ref="jmsConfig" />
> </jaxws:features>
> </jaxws:endpoint>
>
> <bean id="jndiConfig"
> class="org.apache.cxf.transport.jms.JNDIConfiguration">
> <property name="environment">
> <props>
> <prop
> key="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</prop>
> <prop key="java.naming.provider.url">tcp://localhost:61616</prop>
> </props>
> </property>
> </bean>
>
> <bean id="wrappedConnectionFactory"
> class="org.springframework.jms.connection.SingleConnectionFactory">
> <property name="targetConnectionFactory">
> <bean class="org.apache.activemq.ActiveMQConnectionFactory">
> <property name="brokerURL"
> value="tcp://localhost:61616" />
> </bean>
> </property>
> </bean>
>
> <bean id="jmsConfig" class="org.apache.cxf.transport.jms.JMSConfiguration"
> p:jndiConfig-ref="jndiConfig"
> p:connectionFactory-ref="wrappedConnectionFactory"
> p:jndiTemplate-ref="jndiTemplate"
> p:targetDestination="accountServicesRequestQueue"
> p:replyDestination="accountServicesResponseQueue">
> </bean>
>
--
View this message in context:
http://www.nabble.com/CXF-JMS-Integration-tp23767613p23784095.html
Sent from the cxf-user mailing list archive at Nabble.com.