admin@glassfish.java.net

Re: create-instance

From: Jennifer Chou <jennifer.chou_at_oracle.com>
Date: Thu, 06 May 2010 11:43:39 +0100

oh so there is actually no create-server command.
The confusion was how the config bean translated to CRUD.
The Cluster.java config has the CRUD command create-cluster.
The Server.java config has the CRUD command create-instance.

On 5/6/2010 11:31 AM, Jane Young wrote:
> What's the difference between create-instance and create-server command?
>
> Jane
>
>
> Jennifer Chou wrote:
>> When I used create-instance it worked even though the element is
>> "server".
>> I see it gets specified in the Servers.java config bean:
>>
>> @Configured
>> public interface Servers extends ConfigBeanProxy, Injectable {
>>
>> /**
>> * Return the list of currently configured server. Servers can
>> * be added or removed by using the returned {_at_link java.util.List}
>> * instance
>> *
>> * @return the list of configured {_at_link Server}
>> */
>> @Element
>> @Create(value="create-instance", resolver= TypeResolver.class,
>> decorator=Server.Decorator.class)
>> @Delete(value="delete-instance", resolver= TypeAndNameResolver.class)
>> public List<Server> getServer();
>>
>>
>> On 5/6/2010 9:48 AM, Byron Nevins wrote:
>>> I think the way it works is create-server will create the instance
>>> -- because the element is named "server", it is called create-server
>>>
>>> On 5/5/2010 10:30 PM, Bill Shannon wrote:
>>>> I see that we now have a create-cluster command.
>>>> Should the CRUD config support also include a
>>>> create-instance command?
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>