Package org.talend.esb.mep.requestcallback.beans

Examples of org.talend.esb.mep.requestcallback.beans.JmsUriConfiguration


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

Related Classes of org.talend.esb.mep.requestcallback.beans.JmsUriConfiguration

Copyright © 2018 www.massapicom. 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.