package won.protocol.jms;

import javax.jms.ConnectionFactory;

import org.apache.camel.component.jms.JmsConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * User: LEIH-NB
 * Date: 28.04.14
 */
public class WonJmsConfiguration extends JmsConfiguration
{
  private final Logger logger = LoggerFactory.getLogger(getClass());
  
  public WonJmsConfiguration(ConnectionFactory connectionFactory){
    super(connectionFactory);
    configureDefaultJmsConfiguration();
    
  }
  public void configureDefaultJmsConfiguration(){
    setTimeToLive(0);
    setDisableTimeToLive(true);
    setRequestTimeout(0);
    setAsyncConsumer(true);
    setDeliveryPersistent(false);
    setDisableReplyTo(true);
    setTimeToLive(5000);
    setTransacted(false);
    logger.info("default jms configuration setup done");
  }

  public void configureJmsConfigurationForQueues(){
    setConcurrentConsumers(5);
  }

  public void configureJmsConfigurationForTopics(){

  }

}

@@ -550,30 +550,10 @@
     
-setTimeToLive(0);%0A    
+//
 setD
@@ -580,16 +580,18 @@
 e);%0A    
+//
 setReque
@@ -608,16 +608,18 @@
 0);%0A    
+//
 setAsync
@@ -629,24 +629,174 @@
 sumer(true);
+ //this may improve performance for most cases, but it bites us in the registration situation, when we actually want to get a result from the wonnode.
 %0A    setDeli
@@ -818,24 +818,26 @@
 false);%0A    
+//
 setDisableRe
@@ -844,24 +844,25 @@
 plyTo(true);
+ 
 %0A    setTime

Disable async sending in Activmq