title: JMS Transaction manager not working in camel client code
body: <p>I have simple code which connects to broker URL using TCP . When i set transaction manager my code completes without exception and no messages are consumed but when i don't set traction manager it works fine.</p>
  
  <p>Following is code , i am not getting what is missing or is there any configuration needs to be done on broker host.</p>
  
  <pre><code>    import org.apache.activemq.ActiveMQConnectionFactory;
  import org.apache.camel.CamelContext;
  import org.apache.camel.ConsumerTemplate;
  import org.apache.camel.builder.RouteBuilder;
  import org.apache.camel.component.jms.JmsComponent;
  import org.apache.camel.component.jms.JmsConfiguration;
  import org.apache.camel.impl.DefaultCamelContext;
  import org.springframework.jms.connection.JmsTransactionManager;
  
  
  public class JmsCamelComponent {
      public void getMessage() {
          CamelContext context = new DefaultCamelContext();
          ActiveMQConnectionFactory jmsConnectionFactory = new ActiveMQConnectionFactory(
                  "tcp://10.10.3.140:61616?jms.redeliveryPolicy.maximumRedeliveries=10");
          JmsTransactionManager jmsTransactionManager = new JmsTransactionManager(jmsConnectionFactory);
          JmsConfiguration config = new JmsConfiguration(jmsConnectionFactory);
          config.setConnectionFactory(jmsConnectionFactory);
          JmsComponent jms = new JmsComponent(config);
          jms.setTransactionManager(jmsTransactionManager);
          jms.setTransactionTimeout(1000000);
          try {
              System.out.println("Creating and adding route...");
              context.addComponent("jms", jms);
              context.addRoutes(new RouteBuilder() {
                  public void configure() {
                      System.out.println("Inside configure...");
                      from("jms:topic:prathamq?clientId=411&amp;durableSubscriptionName=parag").to("file://test2");
                      System.out.println("after getting message");
                  }
              });
              ConsumerTemplate template = context.createConsumerTemplate();
              context.start();
              System.out.println("Context started...");
              Thread.sleep(1000);
              System.out.println(" " + template.toString());
          } catch (Exception e) {
              // TODO Auto-generated catch block
              System.out.println("In catch block");
              e.printStackTrace();
          }
      }
  
      public static void main(String[] args) {
          (new JmsCamelComponent()).getMessage();
      }
  }
  </code></pre>
  
  <p>Following line i set or unset "jms.setTransactionManager(jmsTransactionManager);"
  Please help.
  Thanks in adavnce ,
  Sohan</p>