Examples of InVMEpr


Examples of org.jboss.soa.esb.addressing.eprs.InVMEpr

 
  public void testSetGet ()
  {
    try
    {
      InVMEpr em = new InVMEpr(new URI("invm://myservice?true#1234"));
     
      assertEquals(em.getServiceId(), "myservice");
      assertEquals(em.getLockstep(), true);
      assertEquals(em.getLockstepWaitTime(), 1234);
     
      em = new InVMEpr(new URI("invm://myservice"));
     
      assertEquals(em.getServiceId(), "myservice");
      assertEquals(em.getLockstep(), false);
      assertEquals(em.getLockstepWaitTime(), InVMEpr.DEFAULT_LOCKSTEP_WAIT_TIME);
    }
    catch (Exception ex)
    {
      fail(ex.toString());
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.eprs.InVMEpr

    public void test_getEncodedServiceId() throws URISyntaxException {
        String serviceId = InVMEpr.createEncodedServiceId("Service Cat / &&&", " Service / Name $$");
        assertEquals("5365727669636520436174202f2026262624242424242424242424242453657276696365202f204e616d65202424", serviceId);

        InVMEpr epr = new InVMEpr(new URI(InVMEpr.INVM_PROTOCOL + "://" + serviceId));
        assertEquals("5365727669636520436174202f2026262624242424242424242424242453657276696365202f204e616d65202424", epr.getServiceId());
    }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.eprs.InVMEpr

  {
    String addr = null;

    addr = epr.getAddr().getAddress();
        if (addr.startsWith(InVMEpr.INVM_PROTOCOL))
            return new InVMCourier(new InVMEpr(epr));
    if (addr.startsWith(JMSEpr.JMS_PROTOCOL))
      return new JmsCourier(new JMSEpr(epr), pickUpOnly);
    if (addr.startsWith(JDBCEpr.JDBC_PROTOCOL))
      return new SqlTableCourier(new JDBCEpr(epr), pickUpOnly);
    // TODO magic strings
View Full Code Here

Examples of org.jboss.soa.esb.addressing.eprs.InVMEpr

        super(createEprAndCourier());
    }

    private static InVMEpr createEprAndCourier() {
        try {
            final InVMEpr epr = new InVMEpr(URI.create(InVMEpr.INVM_PROTOCOL + "://thread-" + Thread.currentThread().getId() + "-" + getNextCounter()));
            epr.setTemporaryEPR(true) ;
            return epr ;
        } catch (URISyntaxException e) {
            throw new RuntimeException("Unexpected Exception creating replyTo InVMEpr.", e);
        }
    }
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.