users@glassfish.java.net

Re: Virtual server with subdomain

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Mon, 12 Apr 2010 20:40:47 -0700

glassfish_at_javadesktop.org wrote:
> Thanks for your response. Please see my inline responses to your questions.
>
>
>> glassfish_at_javadesktop.org wrote:
>>
>>> - I used the admin console.
>>> - Created a new virtual server with host name
>>>
>> m.${com.sun.aas.hostName}. Deployed the new web
>> app(as a war) to this virtual server.
>>
>>> - I am able to see m.${com.sun.aas.hostName} in the
>>>
>> domain.xml as a virtual server.
>>
>>>
>>>
>> When creating the new virtual server, can you resolve
>>
>> ${com.sun.aas.hostName} in its domain name?
>>
>
> How do I check this?
>

Use m.qa.mycompany.com
>
>> What does the <application-ref> element for your app
>> in domain.xml look
>> like after you've deployed it?
>>
>
> <servers>
> <server config-ref="server-config" lb-weight="100" name="server">
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="adminapp" virtual-servers="__asadmin"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="admingui" virtual-servers="__asadmin"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="JBIFramework"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTXServices"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTCPConnectorLCModule"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="MEjbApp" virtual-servers="server"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__ejb_container_timer_app" virtual-servers="server"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__JWSappclients" virtual-servers="server"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="myCompany" virtual-servers="server"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="mobileApp" virtual-servers="mobileServer"/>
> <resource-ref enabled="true" ref="jdbc/__TimerPool"/>
> <resource-ref enabled="true" ref="jdbc/__CallFlowPool"/>
> <resource-ref enabled="true" ref="jdbc/__default"/>
> </server>
> </servers>
>

I don't see any app deployed to the new virtual server.

You mentioned: "I made sure that my default app's virtual server is
server and the new app's virtual server is the new virtual server that I
created."

What is the id of your new app?

>> Are you accessing your app from a browser? If so, did
>> you update your
>> DNS configuration with the new domain name?
>>
>
> Yes. I didn't do it. I will talk to my network admin about it.
>

You can test your new virtual server without making any changes to DNS,
by using telnet and specifying the new domain name as the value of the
"Host" request header, as follows:

  telnet localhost <post on which m.qa.mycompany.com is accessible>
  GET <request-uri> HTTP/1.1
  Host: m.qa.mycompany.com

You need to substitute <post on which m.qa.mycompany.com is accessible>
and <request-uri> as appropriate.


Jan

>> Jan
>>
>>
>>> [Message sent by forum member 'filboid_us']
>>>
>>>
>>>
>> http://forums.java.net/jive/thread.jspa?messageID=3965
>> 95
>>
>>>
>> ------------------------------------------------------
>> ---------------
>>
>>> To unsubscribe, e-mail:
>>>
>> users-unsubscribe_at_glassfish.dev.java.net
>>
>>> For additional commands, e-mail:
>>>
>> users-help_at_glassfish.dev.java.net
>>
>>>
>>>
>> ------------------------------------------------------
>> ---------------
>> To unsubscribe, e-mail:
>> users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail:
>> users-help_at_glassfish.dev.java.net
>>
> [Message sent by forum member 'filboid_us']
>
> http://forums.java.net/jive/thread.jspa?messageID=396600
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>