I'm trying to set the client receive timeout (and other jms config) via
code rather than spring config or wsdl config like:

  <jms:clientConfig clientReceiveTimeout="1000" />

 

At first glance the following sample is set up to do just what I'm
trying to do:

 
apache-cxf-2.2.1/samples/jms_queue/src/demo/jms_greeter/client/Client.ja
va

 

However when this sample is run with no server running the client takes
the default time to timeout (which is 60 seconds in 2.2.1), rather than
the 1 second that is configured in the code.  Adding the config
mentioned above to the port in wsdl works.  I've tried a few variations
for the key in java, like the following, but this hasn't worked:

 
requestContext.put("org.apache.cxf.transports.jms.ClientConfig.clientRec
eiveTimeout", new Long(1000));

 

Can anyone suggest ways to set this config programmatically rather than
in wsdl or spring? 

 

-Mike

 

Reply via email to