Did you try putting your bean definition in META-INF/spring.xml? I think
spring container uses spring.xml file to read the configuration. (I
don't know how you can override it and tell spring container to read
cxf.xml instead)
Regards,
Ulhas Bhole
Nepali, Sonam (GE Healthcare, consultant) wrote:
So basically I have a HelloWorld.java and its implementation class
HelloWorldImpl.java which has one method called "sayHi()";
In my cxf.xml file, I have defined the following:
<bean id="hello" class="com.mycompany.app.cxf.HelloWorldImpl" />
<jaxws:endpoint id="helloWorld" implementor="#hello"
address="/HelloWorldPort"/>
<bean id="helloClient" class="com.mycompany.app.cxf.HelloWorld"
factory-bean="clientFactory" factory-method="create"/>
<bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass"
value="com.mycompany.app.cxf.HelloWorld" />
<property name="address"
value="http://localhost:8080/maven2cxf_example_webapp/HelloWorld" />
</bean>
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
<jms:destination
name="{http://cxf.app.mycompany.com/}HelloWorldPort.jms-destination">
<jms:address destinationStyle="queue"
jndiConnectionFactoryName="ConnectionFactory"
jndiDestinationName="dynamicQueues/test.cxf.jmstransport.queue"
connectionUserName="testUser"
connectionPassword="testPassword">
<jms:JMSNamingProperty
name="java.naming.factory.initial"
value="org.apache.activemq.jndi.ActiveMQInitialContextFactory" />
<jms:JMSNamingProperty
name="java.naming.provider.url"
value="tcp://localhost:61616" />
</jms:address>
</jms:destination>
But my HelloWorld is not able to pick up any message from the JMS queue
when the client has sent a message. Is there a broker or something that
is missing that enables the HelloWorld service to pick up messages?
thanks
Sonam
-----Original Message-----
From: Nepali, Sonam (GE Healthcare, consultant)
Sent: Thursday, October 16, 2008 9:02 AM
To: [email protected]
Subject: RE: HELP on cxf with jms transport
Yes
I am deploying into Spring container.
thanks
Sonam
-----Original Message-----
From: Ulhas Bhole [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 3:52 AM
To: [email protected]
Subject: Re: HELP on cxf with jms transport
Same servlet should work. Are you trying to deploy into Spring
container?
-- Ulhas
Nepali, Sonam (GE Healthcare, consultant) wrote:
Hi
Does CXF wtih JMS transport with spring config work? I have tried
several approaches. I can get the standalone java approach to work
but when the service is deployed in a war, my HelloWorld service does
not pick up any jms queue data. I have declared to use
"org.apache.cxf.transport.servlet.CXFServlet " in my web.xml. Is
there another one for JMS transport?
many thanks
Sonam Nepali