1 Reply Latest reply: Mar 1, 2011 12:14 AM by kumara RSS

    Glassfish redeploy problem

    843515
      Hello!

      I have a problem with Sun GlassFish Enterprise Server v2.1.1 (1.6.0_22).

      I have several virtual servers on my glassfish, every application (ear) has deployed on own virtual server.

      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="application1" virtual-servers="virtual-server1"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="application2" virtual-servers="virtual-server2"/>

      To deploy application I copy new ear into autodeploy folder. After redeploy application changes own virtual server on another.

      After redeploying application2:

      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="application1" virtual-servers="virtual-server1"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="application2" virtual-servers="virtual-server1"/>

      I need applications to use their own virtual servers after redeploy.
        • 1. Re: Glassfish redeploy problem
          kumara
          Is it possible to use asadmin deploy command instead?

          asadmin deploy --virtualservers=virtual-server1 myapp1.ear
          asadmin deploy --virtualservers=virtual-server2 myapp2.ear

          My memory of 2.x is fading, but if I remember right, for first-time autodeploy (of an application), the application will use all virtual servers available (except one that is reserved for administration). The next autodeploy (redeploy) of the application will leave virtual servers unchanged.