Hi,
i have a standalone JTA Session bean with JPA persistence running since 2008.
This uses the jboss microcontainer code like this:
EJB3StandaloneBootstrap.boot(null);
EJB3StandaloneBootstrap.deployXmlResource("META-INF/myproject-beans.xml");
EJB3StandaloneDeployer deployer = EJB3StandaloneBootstrap.createDeployer();
deployer.getArchivesByResource().add("META-INF/persistence.xml");
deployer.create();
deployer.start();
this.initialContext = new InitialContext();
...
this.initialContext.lookup("MyProjBean/local");
... // Work with JPA on DB
EJB3StandaloneBootstrap.shutdown();
How can I port this code to use current JPA2.1 / Hibernate with Wildfly 10.0.0 JTA EJB3.1 containers?
Thank you
Marcel