Auto-deploy/reload a jar in weblogic server

Swamy picture Swamy · Nov 22, 2012 · Viewed 12.3k times · Source

I am new to Oracle SOA Suite 11.1.1.4... Currently I am working on User defined XPath Functions. As part of this, I will prepare a jar file and need to deploy into weblogic server(10.3) domain lib folder(fusionmw\soasuite\11gR1\11.1.1\sp4\user_projects\domains\DOMAIN_NAME\lib). When ever this jar is altered, I need to replace this in server domain lib and restart the server to load the changes. But I feel this is not a good practice in production server to restart.

Is there a way to auto load updated jar into server's domain so the changes will reflect immediately instead of restarting the server.

Thanks in advance, Swamy.

Answer

Ashish Kumar Gupta picture Ashish Kumar Gupta · Dec 8, 2012

Auto-deployment is a method for quickly deploying an application to a stand-alone server (Administration Server) for evaluation or testing. It is recommended that this method be used only in a single-server development environment.

You can run a WebLogic Server domain in two different modes: development and production. Only development mode allows you use the auto-deployment feature

To auto-deploy an archived application, copy its archive file to the /autodeploy directory. WebLogic Server automatically sets the application’s deployment mode to stage mode.