-
1. Re: accessing custom created datasources in JBOSS 7.1
wdfink Sep 26, 2012 6:43 AM (in response to srinivas.bijjam)I see two issues with that approach.
First is that write to the filesystem will break the EE specification.
The other one is that *-ds.xml files are not recommended to use, instead of development environment.
Nevertheless you might store the datasource file in the standalone/deployment folder and it will be deployed automaticaly. But the behavior might be different, i.e. timing of the availibility etc..
-
2. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Sep 26, 2012 8:02 AM (in response to wdfink)Hi Fink
Any work around solution for this?
Our's is data optimising application where in we get the data from different data sources and then do some business functionality on this data. User creates the data sources through the web application that is deployed on this JBOSS 7.1 Server. Once the user creates the datasource related info like(data source url, user id , password etc etc) we will create respective ds.xml file and stores in deployment folder. In JBOSS 4.x, we used to access these xml's with out any problem.
If we write to deployment folder, server is trying to deploy these file's also
Regards
Srini
-
3. Re: accessing custom created datasources in JBOSS 7.1
wdfink Sep 26, 2012 8:59 AM (in response to srinivas.bijjam)1 of 1 people found this helpfulIf you are happy with that you might try it and use the standalone/deployment folder for your ds files (or add a new deploment folder in the configuration).
The issue is that you are not able to do so in a cluster and the behavior might different or not possible in other versions or different AS server.
-
4. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Sep 26, 2012 9:05 AM (in response to wdfink)Hi Fink
How can I restrict (or ask) server to deploy only the ear file and ignore the rest of the files in the deployment folder?
-
5. Re: accessing custom created datasources in JBOSS 7.1
wdfink Sep 27, 2012 2:52 AM (in response to srinivas.bijjam)You might add a new folder to the subsystem deployment-scanner
<deployment-scanner name="MyDS" path="deployments-ds" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-zipped=="false" auto-deploy-exploded="false"/>
also yo can set auto-deploy-xml (but this is true by default).
I'm not sure whether this avoid all possibilities but you might also use that folder only for your *-ds.xml.
-
6. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Oct 3, 2012 1:07 AM (in response to wdfink)1 of 1 people found this helpfulI got the problem solved.
Just keep the ds.xml files in deployments folder and automatically binding will happen once these files get deployed.
You need to keep only the files which are required to get deployed and others you can remove from the deployment folder and add them in config or module folders