Monday, December 12, 2011

How to hot deploy my war file in Weblogic server?

the steps what we following now demands us to stop and start the server everytime

W will change the file in our local and copy it to another folder, there we will do the build and then using scp command copy the war file to the server .Then finally will stop and start the server for changes to appear Could there be any better solution that would help me hot deploy the war fileHow to hot deploy my war file in Weblogic server?
You haven't said much about your technology, so I am making assumptions here...



You may have to activate hot deployment as a feature in Weblogic. I think I recall that in tomcat or axis2 that this feature is switched off as a security feature: anyone could drop a bad WAR into a running server and potentiall cause problems.



Is there not a web console provided by Weblogic that you can point a web browser at? This tends to be the best and easiest way of deploying apps and any other administration required.



Another way of hot deploying is through your IDE, if you got the right plugin to support it. For example, I managed to find an Axis 2 plugin for NetBeans that, on compilation, would WAR up the ';executable'; and deploy it to the Axis2 folder. Simple.



So to reiterate:

1st make sure Weblogic supports hot deployment! Next, investigate if Weblogic provides a web-based admin tool (if it exists, switch that service on!) or try to deploy automatically from your development environment.



Hope this helps.

No comments:

Post a Comment