return new LocalMethodExecutor();
}
public void start(Context context) throws LifecycleException
{
final ShrinkWrapConfigurationFactory config = new ShrinkWrapConfigurationFactory();
final Assembler assembler = new Assembler();
try
{
// These two objects pretty much encompass all the EJB Container
assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));
}
catch (final OpenEJBException e)
{
throw new LifecycleException("Could not configure the OpenEJB Container", e);
}
// Set
this.assembler = assembler;
this.config = new ShrinkWrapConfigurationFactory();
}