WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Deploying application jar on only one node in a cluster.

    Posted Thu June 25, 2020 11:41 AM
    Hi Team,

    I have requirment that, The application team has modified a jar in the enterprise archive and they want this particular jar to be deployed to only one node in a cluster of 2 Nodes. They dont want this jar to be synchronized across cluster members on different nodes. They just want this jar to be deployed on one node and want to test this on only one server in a cluster.  How to i achieve this?

    if there is already a jar with same name in the existing applications(ear) on that node, How to i overwrite this particular jar over existing application jar with same name.

    1. I heard this can be done using Generic JVM arguments to include class path.

    2. Another approach is to create shared library at server level rather cluster and reference it in the server class loading policy.

    I have not done this before. if anyone have done this, could you please guide me with your practical knowledge.

    Cheers, Thank you community.



    ------------------------------
    Mallikarjuna Reddy K
    Websphere & Middleware Administrator

    ------------------------------


  • 2.  RE: Deploying application jar on only one node in a cluster.

    Posted Thu June 25, 2020 12:57 PM
    Strange requirement = Strange solution:
    1. Stop node agent on the node where you don't need any changes.
    2. Update application (e.g. using EAR single file replacement) on cluster where application is installed
    3. You can test changes on synchronized node (where node agent is active) – then rollback or continue
    4. Start node agent, synchronize node (now potential changes are propagated to second node also)

    ------------------------------
    Sebastian Tylko
    ------------------------------



  • 3.  RE: Deploying application jar on only one node in a cluster.

    Posted Fri June 26, 2020 11:26 AM
    Stop the jvm, locate the jar in your installedApps directory (usually inside EAR/lib or EAR/WAR/WEB-INF/lib), replace it with the updated file and then start that jvm. This will work until your next deployment overwrites this jar.

    ------------------------------
    Regards,
    Azhagesan Pazhani Gurusamy
    ------------------------------



  • 4.  RE: Deploying application jar on only one node in a cluster.

    Posted Fri June 26, 2020 12:42 PM

    This information here should provide what you are asking for.  If not let us know.

    https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/twve_appedconc.html



    ------------------------------
    Glenn Marcy
    ------------------------------



  • 5.  RE: Deploying application jar on only one node in a cluster.

    Posted Mon June 29, 2020 06:53 AM
    Edited by Lars Besselmann Tue June 30, 2020 03:54 AM

    There are different options to update a single jar.
    These options are described here:
    https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/crun_app_upgrade.html

    As you want to deploy the change to one node only, please make sure to disable the synchronization, otherwise the next sync (wanted or not) will overwrite changes. You can find details here:
    https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/trun_app_hotupgrade.html

    ------------------------------
    Lars Besselmann
    Client Technical Professional Hybrid Cloud, IBM

    https://www.linkedin.com/in/lars-besselmann-29944977/
    ------------------------------