This content has been marked as final.
Show 3 replies
-
1. Re: Can JBoss have DB Multipools (or pool of pools)?
peterj Jul 21, 2009 1:04 PM (in response to billa007)You can define only a single URL for each datasource, thus you can connect to only one database.
You can define multiple datasource entries in a *-ds.xml file, though. -
2. Re: Can JBoss have DB Multipools (or pool of pools)?
billa007 Jul 21, 2009 3:49 PM (in response to billa007)Well, the example I mentioned above, Oracle does provide a way to connect to more then one db (more then one server).
I was incorrect in saying it only works with RAC. It does work with plain oracle DB.
The only problem is that it HAS to have the same SID on both servers. So in is not a TRUE pool of pools. So it is one Datasource for multiple Oracle databases with SAME SID. And it only applies to Oracle.
What I want to know is if JBoss has a way to define a dataSource pointing to multiple db's or DataSources.
thanks -
3. Re: Can JBoss have DB Multipools (or pool of pools)?
peterj Jul 21, 2009 3:54 PM (in response to billa007)What I want to know is if JBoss has a way to define a dataSource pointing to multiple db's or DataSources.
Like I said, the JBoss AS datasource descriptor file allows you to specify only one connection URL. If the JDBC driver permits you to specify multiple databases, great. If not, then you are stuck with only one database.