[jboss-jira] [JBoss JIRA] (WFLY-4840) Deprecated element cluster-passivation-store from ejb subsystem does not work
Brian Stansberry (JIRA)
issues at jboss.org
Tue Mar 8 10:53:00 EST 2016
[ https://issues.jboss.org/browse/WFLY-4840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173693#comment-13173693 ]
Brian Stansberry commented on WFLY-4840:
----------------------------------------
WFCORE-1106 may help with this, by letting the remove + add + reload workflow Rado showed above work without having to do remove + reload + add. The WFCORE-1106 thing would assume that both resources expose the same capability, which seems possible since it looks like they both install a service with the same name.
I haven't tried but given Rado's comment above I believe this workflow should work fine:
reload --admin-only=true
/subsystem=ejb3/passivation-store=infinispan:remove
/subsystem=ejb3/cluster-passivation-store=infinispan:add
reload --admin-only=false
I'm not sure why you'd want to mirror the state between the resources, not if the goal is to get rid of cluster-passivation-store. WF 10 already includes the current API, as will EAP 7.0, so any kind of mirroring becomes an API change, and will likely be a source of bugs.
> 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: EJB
> Reporter: Ondřej Chaloupka
> Assignee: Dominik Pospisil
> Priority: Minor
>
> 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.4.11#64026)
More information about the jboss-jira
mailing list