[jboss-jira] [JBoss JIRA] (WFLY-4840) Deprecated element cluster-passivation-store from ejb subsystem does not work

Ondřej Chaloupka (JIRA) issues at jboss.org
Mon Aug 31 04:54:05 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-4840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103501#comment-13103501 ] 

Ondřej Chaloupka commented on WFLY-4840:
----------------------------------------

Yes, it's so but it was not the point of this issue. My interest was that the {{cluster-passivation-store}} was replaced with {{passivation-store}}. But you can't use {{cluster-passivation-store}} for all settings that {{passivation-store}} offers. I just thought that even if {{cluster-passivation-store}} is deprecated it should give you chance to do process all operations which you can do with new name {{passivation-store}}.

E.g. you can't remove
{code}
[standalone at localhost:9990 /] /subsystem=ejb3/cluster-passivation-store=infinispan:remove()
{
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0216: Management resource '[
    (\"subsystem\" => \"ejb3\"),
    (\"cluster-passivation-store\" => \"infinispan\")
]' not found",
    "rolled-back" => true
}

[standalone at localhost:9990 /] /subsystem=ejb3/passivation-store=infinispan:remove()
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    }
}

[standalone at localhost:9990 /] :reload()
{
    "outcome" => "success",
    "result" => undefined
}
[standalone at localhost:9990 /] /subsystem=ejb3:read-resource()
{
    "outcome" => "success",
    "result" => {
        ...
        "cluster-passivation-store" => undefined,
        "passivation-store" => undefined,
        ...
        },
        ...
    }
}
{code}

> Deprecated element cluster-passivation-store from ejb subsystem does not work
> -----------------------------------------------------------------------------
>
>                 Key: WFLY-4840
>                 URL: https://issues.jboss.org/browse/WFLY-4840
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management, EJB
>            Reporter: Ondřej Chaloupka
>            Assignee: Paul Ferraro
>
> There is a mismatch in behaviour of deprecated element {{cluster-passivation-store}} under {{ejb}} subsystem.
> When element is deprecated still it should work and only prints warning that it's deprecated.
> {code}
> [standalone at localhost:9990 /] /subsystem=ejb3/cluster-passivation-store=infinispan:read-resource()
> {
>     "outcome" => "failed",
>     "failure-description" => "WFLYCTL0216: Management resource '[
>     (\"subsystem\" => \"ejb3\"),
>     (\"cluster-passivation-store\" => \"infinispan\")
> ]' not found",
>     "rolled-back" => true
> }
> {code}
> but
> {code}
> [standalone at localhost:9990 /] /subsystem=ejb3/cluster-passivation-store=infinispan:add()
> {
>     "outcome" => "failed",
>     "failure-description" => "WFLYCTL0158: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service jboss.ejb.cache.factory.distributable.infinispan is already registered",
>     "rolled-back" => true
> }
> {code}
> _A note:_ the element {{cluster-passivation-store}} was replaced by {{passivation-store}} which works fine



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jboss-jira mailing list