Skip to content

Instantly share code, notes, and snippets.

@dblevins
Created July 9, 2009 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblevins/143371 to your computer and use it in GitHub Desktop.
Save dblevins/143371 to your computer and use it in GitHub Desktop.
ConfigurationFactory config = new ConfigurationFactory();
Assembler assembler = new Assembler();
SystemInstance.get().setProperty("openejb.strict.interface.declaration", "true");
assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));
EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new StatelessBean(OrangeBean.class));
ejbJar.addEnterpriseBean(new StatelessBean(RedBean.class));
ejbJar.addEnterpriseBean(new StatelessBean(YellowBean.class));
ejbJar.addEnterpriseBean(new StatelessBean(GreenBean.class));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment