How to embed weblogic server in java?

I'm looking for any way to embed a Weblogic server in Java, I know that this is possible because we have maven plugins for Weblogic that embed Weblogic in maven, but googling for it did'nt gave me a useful result. Does anyone know how we can embed wemlogic in a java program?

+3
source share
4 answers

WebLogic does not provide a built-in API, therefore, even if it is a pure Java server, and if you can call it weblogic.Serverfrom Java code, you will have to process everything yourself (starting the container, waiting for it to start, deploying things, waiting for them to be deployed, etc. ) In other words, this will require some work. Perhaps look at the sources of Cargo , although Cargo does not start the built-in Weblogic (i.e. it works weblogic.Serverin the same JVM). This will give you an idea of ​​what needs to be done. Or, depending on your needs, use the Cargo Java API .

But if you need a full Java EE server, and if this is an option, I would use GlassFish v3 in native mode instead of WebLogic, it will be much easier. Check out the following links and see for yourself:

+2

WLS, - ? , Jetty.

WLS . . , WLS - weblogic.Server. , PATH (. SetDomainEnv.sh startWeblogic.sh), Java, "" WLS.

+1

, , . maven , , , . , , .

- , .

0

WebLogic , Glassfish, Weblogic "WebLogic Maven Plugin", maven Weblogic.

. .

0

Source: https://habr.com/ru/post/1743631/


All Articles