1 of 1 people found this helpful
The answer is no in both cases. A *-ds.xml file is not something that you load, rather it is a data source configuration file that JBoss AS deploys; your application only looks up this deployed resource in JNDI. Is there a reason why you don't want to copy the *-ds.xml file to both profiles? That is the simplest solution, especially since the file is so small.
Thank you Peter.
Why I want to do that is just testing for security control of database.
What I already done is I used datasource password encryption in *-ds.xml file and I write encrypted password in login-config.xml file as you know.
I will have more than one application in node2.
So, I would like to separate those application by JBoss multi-instance features for performance.
But they used the same schema in same database.I don't want to create *-ds.xml in every instances.
So, I consider about one ds file from multi-instances.
Thanks for everything.