This discussion is archived
1 Reply Latest reply: Feb 28, 2011 10:14 PM by 843528 RSS

Glassfish redeploy problem

843515 Newbie
Currently Being Moderated
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
    843528 Newbie
    Currently Being Moderated
    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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points