public static EJBContainer createEJBContainer ( Map < ? , ? > properties ) throws EJBException { for ( EJBContainerProvider factory : factories ) { EJBContainer container = factory . createEJBContainer ( properties ) ; if ( container != null ) return container ; } throw new EJBException ( "Unable to instantiate container with factories " + factories ) ; }
Create and initialize an embeddable EJB container with an set of configuration properties and names of modules to be initialized .