dev@glassfish.java.net

Re: InstanceState service : getting the state of an instance

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Thu, 22 Jul 2010 10:00:23 -0700

Vijay Ramachandran wrote:
> On 7/22/10 9:42 AM, Marina Vatkina wrote:
>> Did it work the same way in v2? Delegated transaction recovery won't
>> be able to work if the state of both instances can't be reliably
>> determined.
>
> I do not know of a similar service that was available in v2.

This is how it was done in v2:

            ServerRuntimeMBean serverMBean =
InstanceProxy.getInstanceProxy(server);
                Status status = serverMBean.getRuntimeStatus().getStatus();
                if (status.getStatusCode() == Status.kInstanceRunningCode) {
                    return true;
                }

>
>> How will the CLI replication work when DAS is down?
>
> DAS is the master and all commands go thro' DAS. Replication happens
> from DAS and if DAS is down how will your command come in at all ?

This is exactly my question. What would it mean that DAS may not be
running?

thanks,
-marina
>
> Vijay
>
>> These are my needs:
>>
>> 1. asadmin recover-transactions foo => should be sent to 'foo'
>>
>> 2. asadmin recover-transactions --target bar foo => should be sent to
>> 'bar' *iff* 'foo' is down, it should fail if 'foo' is up.
>>
>> Regards,
>> -marina
>>
>> Vijay Ramachandran wrote:
>>> On 7/21/2010 4:16 PM, Marina Vatkina wrote:
>>>> Will DAS be always running?
>>>
>>> May not be and when it is not running, the last know state will be
>>> saved.
>>>
>>> I will be calling for a meeting to discuss this further - let me
>>> know your use case then and we can decide if and how we can
>>> accommodate your needs.
>>>
>>> Vijay
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>