[jboss-jira] [JBoss JIRA] (WFLY-3046) Not possible change the object store type from hornetq to jdbc via cli commands
Ivo Studensky (JIRA)
issues at jboss.org
Fri Feb 28 13:07:48 EST 2014
[ https://issues.jboss.org/browse/WFLY-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12949088#comment-12949088 ]
Ivo Studensky commented on WFLY-3046:
-------------------------------------
A comment taken from BZ:
You need to disable {{use-hornetq-store}} first as {{TransactionSubsystemXMLPersister}} prefers the hornetq store to the jdbc store which is also wrong, see the code snippet below:
{code:java|title=TransactionSubsystemXMLPersister.java}
if(node.hasDefined(CommonAttributes.USEHORNETQSTORE) && node.get(CommonAttributes.USEHORNETQSTORE).asBoolean()) {
..
} else if (node.hasDefined(CommonAttributes.USE_JDBC_STORE) && node.get(CommonAttributes.USE_JDBC_STORE).asBoolean()) {
..
}
{code}
Other possibility would be to enhance {{use-hornetq-store}} and {{use-jdbc-store}} write handlers to disable the opposite option.
> Not possible change the object store type from hornetq to jdbc via cli commands
> -------------------------------------------------------------------------------
>
> Key: WFLY-3046
> URL: https://issues.jboss.org/browse/WFLY-3046
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Transactions
> Affects Versions: 8.0.0.Final
> Reporter: Ivo Studensky
> Assignee: Ivo Studensky
>
> When you have set the object store to be type of hornetq and then you change your mind to set it for jdbc object store the jboss-cli permits this operation but no change is propagated to model and XML file.
> How to reproduce:
> # ./bin/standalone.xml (start eap 6.2.0.GA)
> # ./bin/jboss-cli.sh -c (connect to running eap)
> # /subsystem=transactions:write-attribute(name=use-hornetq-store, value=true)
> # :reload# /subsystem=transactions/log-store=log-store:read-attribute(name=type)# /subsystem=transactions:write-attribute(name=use-jdbc-store, value=true)# :reload
> # /subsystem=transactions/log-store=log-store:read-attribute(name=type)
> The object store stays to be set to hornetq and no change happens in the standalone.xml file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list