[jboss-jira] [JBoss JIRA] (WFLY-3791) @Startup can't effectively read the management model

Jason Greene (JIRA) issues at jboss.org
Fri Aug 29 23:00:00 EDT 2014


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

Jason Greene commented on WFLY-3791:
------------------------------------

It's the same design in AS 7. It's just a matter of luck that it worked. Supporting deployment initialization readability of a portion of the management model would require design changes and the introduction of some sort of arbitrary model dependency mechanism. The model would have to operate as a special limited read-only model as well to prevent the other drawbacks mentioned from being accidentally triggered. The work involved would be fairly big, and the use case isn't a high priority at the moment, so it's unlikely to happen any time soon. Although feel free to create a feature request and vote it up.

> @Startup can't effectively read the management model
> ----------------------------------------------------
>
>                 Key: WFLY-3791
>                 URL: https://issues.jboss.org/browse/WFLY-3791
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>    Affects Versions: 8.1.0.Final
>         Environment: Java 7
>            Reporter: ofbiz brazil
>            Assignee: Darran Lofthouse
>             Fix For: No Release
>
>
> Hello,
> When there's a client trying to list a node for a security section, Wildfly says it does not exist but on Jboss 7.1.1 it works fine.
> Java Code:
> {code:java}
>   	final ModelNode request = new ModelNode();
>     	request.get(ClientConstants.OP).set("read-resource");
>     	request.get("recursive").set(true);
>     	request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
>     	final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"), 9999);
>     	final ModelNode response = client.execute(new OperationBuilder(request).build());
>         final String section = response.get(ClientConstants.RESULT).get("security-domain")
>                 .get("pw_MSSQL_CAS_DS")
> {code}
> Result:
> ---------
> {code}
> {
>     "outcome" => "failed",
>     "failure-description" => "JBAS014807: Management resource '[(\"subsystem\" => \"security\")]' not found",
>     "rolled-back" => true
> }
> {code}
> Cheers,



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list