-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
10.1.0.Final
-
None
When a Datasource is defined either using @DatasourceDefinition or via web.xml, it isn't registered in the deployment model at /deployment=xx.war/subsystem=datasources.
It works as expected when deploying the datasource via the deprecated *-ds.xml way.
Looking at the code, it seems that DataSourceDefinitionAnnotationProcessor and DataSourceDefinitionDescriptorProcessor just need to add the resource to the org.jboss.as.server.deployment.Attachments.DEPLOYMENT_RESOURCE_SUPPORT as DsXmlDeploymentInstallProcessor does.