Received: from rcsinet13.oracle.com (/148.87.113.125)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 16 Jun 2010 11:12:28 -0700
Received: from acsinet12.oracle.com (acsinet12.oracle.com [141.146.126.234])
	by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5GICQ6r023308
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <anissa.lam@oracle.com>; Wed, 16 Jun 2010 18:12:27 GMT
Received: from dev.java.net (s015.sjc.collab.net [208.87.9.178])
	by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with SMTP id o5GICOlg024575
	for <anissa.lam@oracle.com>; Wed, 16 Jun 2010 18:12:25 GMT
Received: (qmail 16794 invoked by uid 5000); 16 Jun 2010 18:12:24 -0000
Mailing-List: contact admin-help@glassfish.dev.java.net; run by ezmlm
Precedence: bulk
X-No-Archive: yes
list-help: <mailto:admin-help@glassfish.dev.java.net>
list-unsubscribe: <mailto:admin-unsubscribe@glassfish.dev.java.net>
list-post: <mailto:admin@glassfish.dev.java.net>
Reply-To: admin@glassfish.dev.java.net
Delivered-To: mailing list admin@glassfish.dev.java.net
Received: (qmail 16781 invoked from network); 16 Jun 2010 18:12:23 -0000
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgMBAJWwGEyUV3F5kWdsb2JhbACeaxUBAQEBCQsKBxEFHcBThRoEg1I
X-IronPort-AV: E=Sophos;i="4.53,427,1272870000"; 
   d="scan'208";a="5180870"
X-IRONPORT: SCANNED
Message-ID: <4C1913D5.80905@oracle.com>
Date: Wed, 16 Jun 2010 11:11:33 -0700
From: Snjezana Sevo-Zenzerovic <snjezana.sevozenzerovic@oracle.com>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: admin@glassfish.dev.java.net
References: <4C17161E.6050702@oracle.com> <4C1720F1.7010004@oracle.com> <4C17C286.9020906@oracle.com> <4C183F25.3050806@oracle.com>
In-Reply-To: <4C183F25.3050806@oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject:  Re: would like to add a default node element to domain.xml
X-Source-IP: acsinet12.oracle.com [141.146.126.234]
X-CT-RefId: str=0001.0A090204.4C19140B.010E,ss=1,fgs=0
X-Auth-Type: Internal IP

Correct, you need to update domain.xml template in 
packager/nucleus-base/lib/templates directory. I think we cleaned up all 
other workspace copies of domain.xml anyway...

Thanks,

Snjezana

Jerome Dochez wrote:
> ok so indeed, it seems that adding to the default domain.xml is the 
> easiest way to achieve what you describe below.
> If I remember correctly, the nucleus-base is the right location but 
> Snjezana should confirm
>
> jerome
>
> On 6/15/10 11:12 AM, Carla Mott wrote:
>> The default node would look like below.  It is at the same level as 
>> then 'configs' element and it does have default values as below.  The 
>> corresponding server element that would refer to it is also included 
>> below.
>>
>> If we don't have this default node element then we need to figure out 
>> what we are going to do with the 'node-ref' attribute (it should 
>> point to an existing 'node' element) in 'server' element.  We can 
>> either force the user to create a node element  (bothersome for 
>> developers that will be running everything on their local machines) 
>> or we can create it for them (won't happen for m2).   Currently 
>> 'node-agent-ref' is being used in several places to figure out which 
>> host to connect to and run commands but we want to transition away 
>> from that in m3.
>> proposed default node element:
>> <nodes>
>> <node name="localhost" nodehost="localhost" 
>> nodehome=${com.sun.aas.installRoot}>
>> </node>
>> <nodes>
>>
>> <server node-agent-ref="bear.sfbay.sun.com" name="instance1" 
>> node-ref="localhost" config-ref="instance1-config">
>>
>> Carla
>>
>>
>>
>> Jerome Dochez wrote:
>>> On 6/14/10 10:56 PM, Carla Mott wrote:
>>>> Hi,
>>>>
>>>> I'd like to add a default node element to domain.xml much like 
>>>> there is a default-config element.  For m2 we want to move towards 
>>>> requiring a node-ref (new) attribute to server element.  This new 
>>>> node-ref attribute will point to a node element which information 
>>>> about the host where the instance is running and in the case of a 
>>>> developer it is localhost.  I don't want to have to required a 
>>>> developer to create a node with localhost info when he creates an 
>>>> instance.  It would be nice to have a default node that we refer to 
>>>> when creating an instance if noderef option is not specified.
>>>>
>>>> What is the process for adding to domain.xml?  Do I just add the 
>>>> node element to domain.xml file in packager/nucleus-base?
>>>>
>>>>
>>>> Carla
>>> no, I don't think this is the right approach.
>>>
>>> so this default node would be located where ?
>>> does it also has default attributes ?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: admin-help@glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: admin-help@glassfish.dev.java.net
>


-- 
Oracle <http://www.oracle.com>
Snjezana Sevo-Zenzerovic


Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment

---------------------------------------------------------------------
To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: admin-help@glassfish.dev.java.net