On a related note, will there ever be a way to choose virtual-server
per-WAR when deploying an EAR? In our scenario, we have a single EAR
with an ejb-jar, several utility libs, and multiple WARs. Each WAR is
on a unique domain name, and requires SSL. Therefore, each WAR needs
to listen on a different address:port. We plan to use muliple ports
on the same address.
I understand we can do this today by throwing away the EAR, copying
all shared libs into domain/lib, and hand deploying each module
independently. However, I would prefer to stick with a single EAR if
possible.
Any possibility of adding a "virtual-server" option to sun-web.xml?
Paul
On Sun, Mar 13, 2011 at 12:10 PM, Anissa Lam <anissa.lam_at_oracle.com> wrote:
>
>
> On 3/13/11 7:16 AM, forums_at_java.net wrote:
>
> As an aside, I've also noticed that the GF 3.1 admin gui does not appear to
> allow you to change the virtual servers to which an app is deployed. In the
> app definition window, I've deselected all but one of the virtual servers,
> clicked save, but when the screen refreshes all virtual servers are again
> selected. Anyone else observe this behavior?
>
> You are hitting this issue: http://java.net/jira/browse/GLASSFISH-16048
> The fix was not able to make it into 3.1. It will be available in the next
> release.
> The work around is to use CLI, as specified in the bug report:
>
> We want to release note this to provide a workaround for user.
> User will only see this issue when there is NO clusters or standalone
> instances created in the domain.
>
> - For the status of the application, always look at the applications table
> that lists out the applications. The status is correctly displayed there,
> and user can use this table to change the status as well.
>
> - To change the virtual server for the deployed application, use the CLI set
> command.
>
> use the following CLI to see the info:
>
> %asadmin get server.application-ref.<APPLICATION_NAME>.*
>
> and set command to change the list of virtual servers for this application.
>
> %asadmin set
> server.application-ref.<APPLICATION_NAME>.virtual-servers=<list-of-vs-separated-by-comman>
>
> example of get :
> %asadmin get server.application-ref.hello
>
> examples of set:
> %asadmin set server.application-ref.hello.virtual-servers=server,myVS
> or
> %asadmin set server.application-ref.hello.virtual-servers=myVS
>
> Or you can create a cluster without any instance. This will force the UI to
> change, with that you can modify VS without any issue.
>
> thanks
> Anissa.
>
>
>
>
> --
>
> [Message sent by forum member 'wbehymer']
>
> View Post: http://forums.java.net/node/781142
>
>
>