Hi

I inserted the following into org.apache.servicemix.jms.JMSSpringTest.

   public void test2() throws Exception
   {
     DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);

     DocumentFragment epr = URIResolver.createWSAEPR("jms://queue/xxx");
ServiceEndpoint se = client.getContext().resolveEndpointReference(epr);
     assertNotNull(se);
InOnly inonly = client.createInOnlyExchange();
     inonly.setEndpoint(se);
inonly.getInMessage().setContent(new StringSource("<hello>world</hello>"));
     client.sendSync(inonly);
   }

I'm expecting it to pull-up a JMS provider endpoint, and send a message to the specified queue.

It doesn't seem to work because it can't find the connectionFactory in the AbstractJMSProcesser start() method. I'm confused. How/where do I set this to get it to work ?

Many thanks,

Roger

Reply via email to