I have the container to read the cxf.xml file in the my web.xml with
the following declaration:

        <context-param>
                <param-name>contextConfigLocation</param-name>
        
<param-value>classpath:com/mycompany/app/cxf/cxf.xml</param-value>

        </context-param>

        <listener>
                <listener-class>
        
org.springframework.web.context.ContextLoaderListener
                </listener-class>
        </listener>


The wsdl shows up in
"http://localhost:8080/maven2cxf_example_webapp/HelloWorldPort?wsdl";.
But when I have my client send a message, the message is not getting
read by the HelloWorld service.  

I have defined "<jms:destination>" tags with the HelloWorld service.  It
is not working.  Can you shed some light on this?  I saw that you had
defined a broker in your sample application.  I don't know if I need a
broker for my web-based service.

thanks


Sonam
-----Original Message-----
From: Ulhas Bhole [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2008 10:47 AM
To: [email protected]
Subject: Re: HELP on cxf with jms transport

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
>>  
>>     
>
>   

Reply via email to