Examples of applyJmsUri()


Examples of org.talend.esb.mep.requestcallback.beans.JmsUriConfiguration.applyJmsUri()

public class DetailTest {

  @Test
  public void testJmsUriParsing() {
    JmsUriConfiguration cfg = new JmsUriConfiguration();
    cfg.applyJmsUri("jms:queue:callbackRequestQueue.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61616");
    assertEquals(cfg.getVariant(), "queue");
    assertEquals(cfg.getDestinationName(), "callbackRequestQueue.queue");
    assertEquals(cfg.getParameter("jndiInitialContextFactory"), "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
    assertEquals(cfg.getParameter("jndiConnectionFactoryName"), "ConnectionFactory");
    assertEquals(cfg.getParameter("jndiURL"), "tcp://localhost:61616");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.