public boolean init() { boolean result = initialized.compareAndSet(false, true); if (result) { if (jndiLocalTemplate == null) { jndiLocalTemplate = new JndiLookupFactory(); } if (jndiOutboundTemplate == null) { jndiOutboundTemplate = new JndiLookupFactory(); } if (inboundMessageConvertor == null) { inboundMessageConvertor = new SimpleJmsMessageConvertor(); } if (outboundMessageConvertor == null) { outboundMessageConvertor = new SimpleJmsMessageConvertor(); } replyToBridges.setMaxCacheSize(getReplyToDestinationCacheSize()); connectionService = createExecutor(); // Subclasses can override this to customize their own it. result = doConnectorInit(); } return result; }
/** * Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or * visa-versa outbound. If the replyTo Destination instance is not null * then the Message is configured with the given replyTo value. * * @param message * The target message to convert to a native ActiveMQ message * @param replyTo * The replyTo Destination to set on the converted Message. * * @return the converted message * @throws JMSException */ public Message convert(Message message, Destination replyTo) throws JMSException { Message msg = convert(message); if (replyTo != null) { msg.setJMSReplyTo(replyTo); } else { msg.setJMSReplyTo(null); } return msg; }
/** */ public boolean init() { boolean result = initialized.compareAndSet(false, true); if (result) { if (jndiLocalTemplate == null) { jndiLocalTemplate = new JndiTemplate(); } if (jndiOutboundTemplate == null) { jndiOutboundTemplate = new JndiTemplate(); } if (inboundMessageConvertor == null) { inboundMessageConvertor = new SimpleJmsMessageConvertor(); } if (outboundMessageConvertor == null) { outboundMessageConvertor = new SimpleJmsMessageConvertor(); } replyToBridges.setMaxCacheSize(getReplyToDestinationCacheSize()); } return result; }
public Message convert(Message message, Destination replyTo) throws JMSException { Message msg = convert(message); if (replyTo != null) { msg.setJMSReplyTo(replyTo); } else { msg.setJMSReplyTo(null); } return msg; }
public boolean init() { boolean result = initialized.compareAndSet(false, true); if (result) { if (jndiLocalTemplate == null) { jndiLocalTemplate = new JndiLookupFactory(); } if (jndiOutboundTemplate == null) { jndiOutboundTemplate = new JndiLookupFactory(); } if (inboundMessageConvertor == null) { inboundMessageConvertor = new SimpleJmsMessageConvertor(); } if (outboundMessageConvertor == null) { outboundMessageConvertor = new SimpleJmsMessageConvertor(); } replyToBridges.setMaxCacheSize(getReplyToDestinationCacheSize()); connectionService = createExecutor(); // Subclasses can override this to customize their own it. result = doConnectorInit(); } return result; }
/** * Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or * visa-versa outbound. If the replyTo Destination instance is not null * then the Message is configured with the given replyTo value. * * @param message * The target message to convert to a native ActiveMQ message * @param replyTo * The replyTo Destination to set on the converted Message. * * @return the converted message * @throws JMSException */ public Message convert(Message message, Destination replyTo) throws JMSException { Message msg = convert(message); if (replyTo != null) { msg.setJMSReplyTo(replyTo); } else { msg.setJMSReplyTo(null); } return msg; }
public boolean init() { boolean result = initialized.compareAndSet(false, true); if (result) { if (jndiLocalTemplate == null) { jndiLocalTemplate = new JndiLookupFactory(); } if (jndiOutboundTemplate == null) { jndiOutboundTemplate = new JndiLookupFactory(); } if (inboundMessageConvertor == null) { inboundMessageConvertor = new SimpleJmsMessageConvertor(); } if (outboundMessageConvertor == null) { outboundMessageConvertor = new SimpleJmsMessageConvertor(); } replyToBridges.setMaxCacheSize(getReplyToDestinationCacheSize()); connectionService = createExecutor(); // Subclasses can override this to customize their own it. result = doConnectorInit(); } return result; }
/** * Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or * visa-versa outbound. If the replyTo Destination instance is not null * then the Message is configured with the given replyTo value. * * @param message * The target message to convert to a native ActiveMQ message * @param replyTo * The replyTo Destination to set on the converted Message. * * @return the converted message * @throws JMSException */ public Message convert(Message message, Destination replyTo) throws JMSException { Message msg = convert(message); if (replyTo != null) { msg.setJMSReplyTo(replyTo); } else { msg.setJMSReplyTo(null); } return msg; }
public boolean init() { boolean result = initialized.compareAndSet(false, true); if (result) { if (jndiLocalTemplate == null) { jndiLocalTemplate = new JndiLookupFactory(); } if (jndiOutboundTemplate == null) { jndiOutboundTemplate = new JndiLookupFactory(); } if (inboundMessageConvertor == null) { inboundMessageConvertor = new SimpleJmsMessageConvertor(); } if (outboundMessageConvertor == null) { outboundMessageConvertor = new SimpleJmsMessageConvertor(); } replyToBridges.setMaxCacheSize(getReplyToDestinationCacheSize()); connectionService = createExecutor(); // Subclasses can override this to customize their own it. result = doConnectorInit(); } return result; }
/** * Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or * visa-versa outbound. If the replyTo Destination instance is not null * then the Message is configured with the given replyTo value. * * @param message * The target message to convert to a native ActiveMQ message * @param replyTo * The replyTo Destination to set on the converted Message. * * @return the converted message * @throws JMSException */ public Message convert(Message message, Destination replyTo) throws JMSException { Message msg = convert(message); if (replyTo != null) { msg.setJMSReplyTo(replyTo); } else { msg.setJMSReplyTo(null); } return msg; }