I have multiple projects created and being developed under one development environment of OEPE (Oracle Enterprise Pack for Eclipse (220.127.116.11.1) ), Weblogic Server 12c and Oracle 12C.
I would like to invoke the web applications under the different projects in separate JVMs in parallel. When invoking these applications in separate projects in parallel, it appears that they are sharing the same JVM, but creating different instances of the same EntityManagerFactory. As one JVM should only have one active instance of the same EntityManagerFactory, it causes the persistent database access failures in the different projects running in parallel.
Could anyone can help to make the development environment I set up above to support multiple JVMs?
Each instance of WebLogic Service runs in a single JVM, so to have you web apps run in separate JVM instances you need multiple WebLogic Server instance. To do that, go to the Servers View and define one or more additional WebLogic Server. You will need to have a separate domain for each instance. The add server wizard will help you to create a domain.
Make sure that your computer is able to handle running all of these instances. It would likely be better to rethink your design so that your web apps can share the same server instance.