[jboss-jira] [JBoss JIRA] (AS7-3866) Data-source disable operation does not supprt allow-resource-service-restart attribute

Stefano Maestri (JIRA) jira-events at lists.jboss.org
Tue Feb 28 10:27:36 EST 2012


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

Stefano Maestri commented on AS7-3866:
--------------------------------------

Subsytem is supporting it.
See ths test: https://github.com/maeste/jboss-as/blob/ba7f8ffd80e4592061fb315e5cbe437b67db4066/testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/mgmt/datasource/DataSourceOperationsUnitTestCase.java#L410

It's passing, while it wll fails if line
disableOperation.get(OPERATION_HEADERS).get(ALLOW_RESOURCE_SERVICE_RESTART).set(true);
is removed.
It could be a cli problem, assingning to Alexey to check
        
                
> 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: Stefano Maestri
>              Labels: eap6_prd_req
>
> Data-source disable operation does not supprt allow-resource-service-restart attribute (as remove does).
> Steps to reproduce:
> [standalone at 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 at localhost:9999 /] data-source enable --name=TestDS                                                                                                            
> [standalone at 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 at localhost:9999 /] data-source enable --name=TestDS                                                 
> JBAS014749: Operation handler failed: Service jboss.data-source-config.TestDS is already registered
> [standalone at 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

        


More information about the jboss-jira mailing list