I am searching any way for embedding Weblogic server in Java , I know its possible because we have maven plugins for Weblogic which embeds Weblogic in maven, But googling for it did’nt gave me useful output, Does anybody know how can we embed wemlogic in java program ?
Share
WebLogic doesn’t provide an embedded API so, even if it’s a pure Java Server and if you can thus call
weblogic.Serverfrom Java code, you will have to handle everything yourself (starting the container, waiting until it’s started, deploying things, waiting until they are deployed, etc). In other words, this will require some work.Maybe have a look at the sources of Cargo, although Cargo isn’t really starting an embedded Weblogic (i.e. running
weblogic.Serverin the same JVM). This will give you an idea of what has to be done. Or, depending on your needs, use Cargo Java API.But if you need a full Java EE server and if this is an option, I would use GlassFish v3 in embedded mode instead of WebLogic, it will be much simpler. Check the following links and see yourself: