Created
July 9, 2009 02:15
-
-
Save dblevins/143371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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