Multiple Databases within the same application

"Hagerty, Timothy CIV NAVSAFECEN, 52D" <[email protected]>
Newsgroups gmane.comp.java.keel.user
Message-ID <A87876CC4C70F349B0ED74EF9F4CA77604407D02@NAEANRFKEX01VA.nadsusea.nads.navy.mil>
Hello All,

I have a question about multiple database connections. 

I have 3 separate database connections going to 3 different databases. 

When I use the following code: 

PersistentFactory pf = (PersistentFactory) request.getService(PersistentFactory.ROLE,
						request.getDomain());	

I get a connection to the first jdbc connection listed within the merged.config file.

How do I set one of those connections apart from the other 2 as the default connection when I use the code: request.getDomain()?

Thanks,
Tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.