Hi,

Got it! Extracted the proxy object from the client proxy, the client from
the proxy object, the jmstransport conduit from the client, and finally the
AddressType from the conduit. Then added all the address info to the
AddressType.

:)

Regards
Mayank
-----Original Message-----
From: Mayank Thakore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 23, 2008 12:45
To: cxf-user@incubator.apache.org; [EMAIL PROTECTED]
Subject: RE: jms client

Hi,

After getting the service I could add the port to it and then get the
service proxy.

                service.addPort(portName,
"http://schemas.xmlsoap.org/soap/";,
                                endPointURL);
                NotificationConsumer consumer = service.getPort(portName,
                                NotificationConsumer.class);

But, problem is that this port does not have JMS information which we
provide per port in the wsdl.

      <jms:address jndiConnectionFactoryName="ConnectionFactory"
                 jndiDestinationName="NotificationConsumerQueue"
jndiReplyDestinationName="NotificationConsumerReplyQueue">
        <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>

Hence, when trying to use the proxy, it fails with exception similar to when
wsdl is not provided in the service annotation.

So, now that I can add the port, how to provide the jms destination specific
information?

Thanks!

Regards
Mayank

-----Original Message-----
From: Mayank Thakore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 23, 2008 11:53
To: cxf-user@incubator.apache.org
Subject: jms client

Hi,

I need to write client to contact several JMS service instances. I will know
their queue names only at runtime.

If I provide wsdl to the client code, then it only contacts the port listed
in the wsdl.

(In http I could provide the server's wsdl by appending ?wsdl to the url,
but this can't be done for jms urls)

 

How to contact server? The service definition is same. The jndi is also
same. Only the queue names will differ.

 

Thanks!

 

Regards

Mayank

 

****************************************************************************
****************************
 This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

 





Reply via email to