[
https://issues.jboss.org/browse/AS7-3866?page=com.atlassian.jira.plugin.s...
]
Alexey Loubyansky commented on AS7-3866:
----------------------------------------
The correct syntax for the header is
data-source disable --name=TestDS --headers={allow-resource-service-restart=true}
Then it works. For operation requests and commands the syntax for the headers is the same.
Here is a doc about the format
https://community.jboss.org/wiki/JBossAS7Command-lineOperationRequestFormat
I'm leaving this open just to look into handling the headers that don't follow the
format, like in this issue.
Data-source disable operation does not supprt
allow-resource-service-restart attribute
--------------------------------------------------------------------------------------
Key: AS7-3866
URL:
https://issues.jboss.org/browse/AS7-3866
Project: Application Server 7
Issue Type: Bug
Components: Domain Management, JCA
Affects Versions: 7.1.0.Final
Reporter: Dominik Pospisil
Assignee: Alexey Loubyansky
Labels: eap6_prd_req
Data-source disable operation does not supprt allow-resource-service-restart attribute
(as remove does).
Steps to reproduce:
[standalone@localhost:9999 /] data-source add --name=TestDS
--jndi-name=java:jboss/datasources/TestDS --driver-name=h2
--connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
[standalone@localhost:9999 /] data-source enable --name=TestDS
[standalone@localhost:9999 /]
/subsystem=datasources/data-source=TestDS:disable{allow-resource-service-restart}
{
"outcome" => "success",
"response-headers" => {
"operation-requires-restart" => true,
"process-state" => "restart-required"
}
}
[standalone@localhost:9999 /] data-source enable --name=TestDS
JBAS014749: Operation handler failed: Service jboss.data-source-config.TestDS is already
registered
[standalone@localhost:9999 /]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira