Why does a vault encrypted datasource password fail to work when used in a *-ds.xml file in JBoss EAP 6?
Issue
- Why does a vault encrypted datasource password fail to work when used in a
*-ds.xmlfile inJBoss EAP 6? - The same vault encrypted password works when the datasource is defined in the standalone.xml file.
- in old
JBoss EAPversion like5.1or5.2, it was possible to deploy datasources and security domains in separate files, like-ds.xml. But inJBoss EAP 6.xit is now impossilbe, because everything must/should be configured instandalone.xml. - We have many applications which have their dependent datasources and different combinations of these applications will be deployed in different JBoss instances. In addition with different environments. With the single
standalone.xmlit is very difficult to maintain our requirement, because you must edit thestandalone.xmlfor each JBoss instance or you must useCLIto setup this configuration, for every new instance and for every migration. - Is it possible to bundle datasource and its security domain in a separate deployment file? if yes, could you please provide us an example?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
