[
https://issues.jboss.org/browse/WFLY-4840?page=com.atlassian.jira.plugin....
]
Radoslav Husar edited comment on WFLY-4840 at 2/4/16 9:12 AM:
--------------------------------------------------------------
The way it currently works is you configure one or the other, not both and no aliases. So
the old configuration still works. So you remove one and the other such as and note that
you need to restart inbetween these changes as the services will be stick around since its
reload required.
{noformat}
[standalone@localhost:9990 /] /subsystem=ejb3/passivation-store=infinispan:remove
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@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,
"response-headers" => {"process-state" =>
"reload-required"}
}
[standalone@localhost:9990 /] :reload
{
"outcome" => "success",
"result" => undefined
}
[standalone@localhost:9990 /] /subsystem=ejb3/cluster-passivation-store=infinispan:add
{"outcome" => "success"}
{noformat}
was (Author: rhusar):
The way it currently works is you configure one or the other, not both and no aliases. So
the old configuration still works. So you remove one and the other such as
{noformat}
[standalone@localhost:9990 /] /subsystem=ejb3/passivation-store=infinispan:remove
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@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,
"response-headers" => {"process-state" =>
"reload-required"}
}
[standalone@localhost:9990 /] :reload
{noformat}
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: Radoslav Husar
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@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@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)