dev@glassfish.java.net

Re: list-persistence-types

From: Rebecca Parks <rebecca.parks_at_oracle.com>
Date: Tue, 19 Oct 2010 14:17:42 -0700

On 10/19/10 01:59 PM, Joseph Fialli wrote:
>
> On 10/19/10 4:40 PM, Rebecca Parks wrote:
>> Hi Joe,
>>
>> This command should also list the
>> ejb-container-availability.ha-persistence-type value, the default of
>> which is replicated.
> ha-persistence-type is deprecated. That has to do with hadb, which is
> not in v3.1, only v2.

It doesn't actually have to do with HADB. The ha-persistence-type
attribute sets the persistence type for SFSB applications that have
availability enabled. It shouldn't be deprecated. The default value is
replicated, or should be. The sfsb-persistence-type attribute sets the
persistence type for SFSB applications that don't have availability
enabled, and its default value is file, which is not new.

Both attributes are needed, unless you want to change the functionality
in a possibly non-backward-compatible way. You could just use
sfsb-persistence-type and have its value change according to the
availability-enabled setting, but that's not how it used to work.

> The list-persistence-type command is currently listing the registered
> persistence types of replicated and replication.

The type has always been replicated, not replication. If the EJB team
is using a different term than the web tier team, this is not good.

> In the future, it will also have "file" I believe.

The file persistence type has been an option since 2.1.1 and before.

Rebecca

> But Mahesh is person to consult on this.
>
> -Joe
>>
>> By the way, I'll be the one doc'ing it.
>>
>> Rebecca
>>
>> On 10/14/10 08:13 AM, Joseph Fialli wrote:
>>> Comment inline below.
>>>
>>> On 10/13/10 3:56 PM, Bill Shannon wrote:
>>>> Joseph Fialli wrote on 10/13/10 10:36 AM:
>>>>> I need to implement a hidden CLI for the following gf issue.
>>>>>
>>>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=13546
>>>>
>>>> Are the values that will be returned by this command also values that
>>>> can be specified for another (non-hidden) command? If so, there's no
>>>> reason for this command to be hidden.
>>>>
>>>> list-persistence-types --type web|ejb
>>> These values would be legal values to following properties that can
>>> be set via "asadmin set" command.
>>>
>>> configs.config.default-config.availability-service.web-container-availability.persistence-type=replicated
>>>
>>> configs.config.default-config.availability-service.ejb-container-availability.sfsb-persistence-type=file
>>>
>>>
>>> configs.config.myCluster-config.availability-service.web-container-availability.persistence-type=replicated
>>>
>>> configs.config.myCluster-config.availability-service.ejb-container-availability.sfsb-persistence-type=file
>>>
>>>
>>> So I will not make this command a hidden CLI.
>>>
>>> -Joe
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>