-
1. Re: accessing custom created datasources in JBOSS 7.1
nickarls Sep 26, 2012 4:35 AM (in response to srinivas.bijjam)Theoretically it should be possible to write a -ds file in AS7, too but writing files isn't that nice.
Is it possible to use the detyped management API to create these datasources?
Or to use maven filtering at build time and deploy the -ds files with the application?
-
2. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Sep 26, 2012 5:14 AM (in response to nickarls)Hi Nicklas, Thanks for quick reply
These ds files are created by users using the application on fly. When we used JBOSS 4.X , we used to get the datasource from these ds files without any issue. Also the users can delete, update these ds files at any time.
-
3. Re: accessing custom created datasources in JBOSS 7.1
nickarls Sep 26, 2012 5:25 AM (in response to srinivas.bijjam)So what happens in AS7 when these -ds.xml files are manipulated in the deployments dir?
-
4. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Sep 26, 2012 7:54 AM (in response to nickarls)when we are creating these files in deployment directory, auto deploy is happening and server is trying to deploy even these xmls also.
-
5. Re: accessing custom created datasources in JBOSS 7.1
nickarls Sep 26, 2012 8:11 AM (in response to srinivas.bijjam)Are you saying that a -ds.xml file created in JBoss 4.x didn't lead to auto-deployment of the contained datasource?
-
6. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Sep 26, 2012 9:03 AM (in response to nickarls)I mean to say that in 7.1 , when I start server using standalone.bat , the server is trying to deploy these files also . In 4.X, if I keep any type of files, the server used to deploy only ear file
-
7. Re: accessing custom created datasources in JBOSS 7.1
jaikiran Sep 26, 2012 9:43 AM (in response to srinivas.bijjam)Srinivas Reddy Bijjam wrote:
In 4.X, if I keep any type of files, the server used to deploy only ear file
I don't think that's true. Unless you had modified the server configurations in such a way that it skipped those files or maybe you placed those files in some other location other than directly in the deploy folder. For example, I'm sure AS 4.x deploys the hsqldb-ds.xml which it ships in its deploy folder.
-
8. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Sep 26, 2012 11:03 AM (in response to jaikiran)jaikiran
Is there a way where I can say the server to deploy only the ear file in JBOSS 7.1. I am not so familiar with 7.1 and we started migrating from 4.X
-
9. Re: accessing custom created datasources in JBOSS 7.1
sfcoy Sep 26, 2012 11:10 AM (in response to srinivas.bijjam)1 of 1 people found this helpfulYou can use the CLI to deploy things without dropping them in the deployments directory, as described in Deploy and undeploy with the CLI.
There's also a Java API for this, although learning to drive it can be challenging.
-
10. Re: accessing custom created datasources in JBOSS 7.1
srinivas.bijjam Oct 3, 2012 1:08 AM (in response to sfcoy)I got the problem solved.
Just keep the ds.xml files in deployments folder and automatically binding will happen once these files get deployed