Production Deployment(versioning) in weblogic

Hi All,

In this article I will explain the process of Production Deployment(versioning) deployment in weblogic. In End users environment few core applications requires all time availability to provide nonstop services to the end users. In that case weblogic is having a magnificent feature which provides the support of versioning of the application. Where we don’t have to manually undeployed the current application we can simply make that application retired. This also help us as a fall back option if something went wrong with the latest application deployment.

Please find below the steps.

Step 1: Set the weblogic home environment i.e. [WLS_home]/wlserver_10.3/server/bin/setWLSEnv.cmd

Step 2: java weblogic.Deployer -adminurl t3://localhost:9001 -username weblogic -password weblogic -deploy -name myCurrentApp -appversion VesionA -retiretimeout 30 -targets AdminServer -source myNewWar.ear

[NOTE] This works only when you deploy intial application with VERSION Value. If no version found than it will throw exception on the Console.

The “retiretimeout” is the time when the Current Active Application will become Retired. It will also help not losing the session details of all the user immediately, Weblogic will simply wait for the time interval specified in the attribute value. Once time value achieved all the request will start going to the newly deployed application.

If you login to Admin console you will notice in the deployment screen the Version number of the application.

In Case if we want to undeploy the application then simply add the “-undeploy” in the command options without source application option.

i.e.
java weblogic.Deployer -adminurl t3://localhost:9001 -username weblogic -password weblogic -undeploy -name myCurrentApp -appversion VesionA -targets AdminServer


Hope this helps.

Thanks,
R Vashi.

nonstop

Advertisements

2 thoughts on “Production Deployment(versioning) in weblogic

  1. Vijay

    Vashi,

    This article makes great sense. Thanks for the post. I got one question though.

    What if I want to back out to initial version after I found some issues with new version.Is there such facility with weblogic deploy tasks?

    Reply
  2. ®V Post author

    Hi Vijay,

    To roll back the production redeployment process, issue a second -redeploy command and specify the deployment source files for the older version:

    java weblogic.Deployer -adminurl http://localhost:8001

    -user weblogic -password weblogic -redeploy

    -name VersionedApp D:/projectBuildArtifacts/VersionedApp1

    -retiretimeout 300

    Hope this helps.


    Admin

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s