use of org.apache.openejb.assembler.Deployer in project tomee by apache.
the class ContainersImplTomEE method lookup.
private Deployer lookup() {
final Options options = new Options(System.getProperties());
final Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
props.put(Context.PROVIDER_URL, options.get(Context.PROVIDER_URL, "http://localhost:" + port + "/tomee/ejb"));
final String deployerJndi = System.getProperty("openejb.deployer.jndiname", "openejb/DeployerBusinessRemote");
try {
final InitialContext context = new InitialContext(props);
return (Deployer) context.lookup(deployerJndi);
} catch (final Exception e) {
throw new OpenEJBTCKRuntimeException(e);
}
}
Aggregations