Examples of EjbConnector


Examples of org.jboss.jmx.connector.ejb.EJBConnector

            + "], found ["
            + jndiEntry.getClass().getName()
            + "] Please check jndiName property.");
      }
 
      return new EJBConnector((AdaptorHome) jndiEntry);
    } catch (Exception e) {
      e.printStackTrace();
      throw new BuildException(e);
    }
  }
View Full Code Here

Examples of org.mule.transport.ejb.EjbConnector

public class EjbConnectorTestCase extends AbstractConnectorTestCase
{

    public Connector createConnector() throws Exception
    {
        EjbConnector c = new EjbConnector(muleContext);
        c.setName("EjbConnector");
        c.setSecurityManager(null);
        return c;
    }
View Full Code Here

Examples of org.mule.transport.ejb.EjbConnector

        return "Hello".getBytes();
    }

    public void testProperties() throws Exception
    {
        EjbConnector c = (EjbConnector) getConnector();

        String securityPolicy = "rmi.policy";
        String serverCodebase = "file:///E:/projects/MyTesting/JAVA/rmi/classes/";

        c.setSecurityPolicy(securityPolicy);
        assertNotNull(c.getSecurityPolicy());
        c.setServerCodebase(serverCodebase);
        assertEquals(serverCodebase, c.getServerCodebase());
    }
View Full Code Here

Examples of org.mule.transport.ejb.EjbConnector

        return "ejb-namespace-config.xml";
    }

    public void testConfig() throws Exception
    {
        EjbConnector c = (EjbConnector) muleContext.getRegistry().lookupConnector("ejbConnector");
        assertNotNull(c);
        assertEquals(1234, c.getPollingFrequency());
        assertEquals(DummySecurityManager.class, c.getSecurityManager().getClass());
        String url = c.getSecurityPolicy();
        assertNotNull(url);
        int index = url.lastIndexOf("/");
        assertTrue(index > 0);
        assertEquals("rmi.policy", url.substring(index+1));
        assertEquals("bcd", c.getServerClassName());
        assertEquals("cde", c.getServerCodebase());
        assertEquals("org.mule.tck.jndi.InMemoryContextFactory", c.getJndiInitialFactory());
        assertEquals("efg", c.getJndiProviderUrl());
        assertEquals("fgh", c.getJndiUrlPkgPrefixes());
        assertEquals("hij", c.getJndiProviderProperties().get("ghi"));
    }
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.