[jboss-jira] [JBoss JIRA] (AS7-6062) Datasource lookup broken in domain mode

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Sun Dec 2 11:44:21 EST 2012


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

Brian Stansberry commented on AS7-6062:
---------------------------------------

I'm quite certain this is due to the shift to use of GenericSubsystemDescribeHandler in DataSourcesSubsystemRootDefinition. GenericSubsystemDescribeHandler does not deal with the "enabled/disabled" stuff that the datasource subsystem is using.

I haven't looked carefully, but GenericSubsystemDescribeHandler has a protected describe() method that looks like it can be used to create a custom describe handler while still re-using most of GenericSubsystemDescribeHandler's logic. So the custom subclass would

@Override
protected void describe(....) {
 super.describe(...);
 addEnableOpsToResult(resource, result);
}
                
> Datasource lookup broken in domain mode
> ---------------------------------------
>
>                 Key: AS7-6062
>                 URL: https://issues.jboss.org/browse/AS7-6062
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JCA
>    Affects Versions: 7.2.0.Alpha1
>            Reporter: Nicklas Karlsson
>            Assignee: Stefano Maestri
>
> A web app with a servlet doing
> System.out.println(new InitialContext().lookup("java:jboss/datasources/ExampleDS"));
> returns an object when the server is run in standalone mode but throws an exception of the DS not being found when run in domain mode.

--
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