final JndiProvider jndiProvider = new JndiProvider("orange");
final Properties p = jndiProvider.getProperties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
p.setProperty(Context.PROVIDER_URL, "ejbd://localhost:" + orange);
final JndiContextInfo contextInfo = config.configureService(jndiProvider, JndiContextInfo.class);
assembler.createExternalContext(contextInfo);
{// Create the "Orange" bean
final EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new StatelessBean(OrangeBean.class));