0 Replies Latest reply on Jul 25, 2014 2:53 PM by user10586926

    EJBContainer.createEJBContainer for maven project


      I have a simple javaee 6 app with a ejb


      I want to write a basic junit test that uses Embedded EJB Container api





                  Properties prop = new Properties();

                  prop.setProperty(EJBContainer.MODULES, "target/classes");

                  prop.put(EJBContainer.PROVIDER, "weblogic.ejb.embeddable.EJBContainerProvider");

                  EJBContainer container = EJBContainer.createEJBContainer(prop);

                  System.out.println("Got EJB COntainer=" + container);

                  Context context = container.getContext();

                  System.out.println("Got Context=" + context);




      what should my pom include as dependencies?


      I have tried using weblogic.jar weblogic.server.merged.jar wlfullclient.jar wlsaft3client.jar wlthint3client.jar and combinations of these jars


      either I get class not found exceptions, or in one case the junit simply hangs doing nothing (it created blank domain folder in c:\temp)


      I opened SR - supports shows me this post Embedded EJB Container // No EJBContainer provider available


      This certainly doesnt work and I get - weblogic.ejb.embeddable.EJBContainerProvider: no provider names had been found


      BTW Oracle support is completely incompetent and lazy on top - I would really appreciate if the community here helps