logo       


Re: How to access multiple databases at the same time?: msg#00356

Subject: Re: How to access multiple databases at the same time?
You could have separate dao managers, this would work well if as you
say they have the same tables/procedures but need to call them with
different database parameters. Also, to add a new group, you would
only need to create a new ibatis config file pointing to the common
sql map.

-ed

On 7/26/05, Ludovic Lambrechts <ludoviclambrechts-dev@xxxxxxxx> wrote:
> Hi there! I'am new to iBatis Data Mapper, which i'am
> testing for futur use in a new project.
> 
> I've read the docs and tutorials and made some tests
> to see how it could help me. I'm pretty impressed by
> this framework!
> 
> Now, I'd like to know if it's possible to access
> multiple databases from, lets say, a servlet in Tomcat
> (and of course, the best way to do it)? Ideally, the
> framework shouldn't be initialized for each request,
> but only once, during the first load of the servlet.
> 
> My application will be a "single point of access" for
> all  the users. The db structure and the queries are
> the same but, depending on the user's department, I
> have to query different instances of the db, possibly
> located on different servers.
> 
> Of course, I don't want to make one servlet for each
> db. At first sight, I tought of building an array of
> SqlMapClient's or, better (? ;-)), using instances of
> DaoManager... but I've no clue :-(
> 
> Since I'm only a beginner, somebody can please help?
> 
> Thanks
> 
> Ludovic
> 
> [developer, 28 years old, brussel,
> belgium]
> 
> 
> 
> 
> 
> 
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
>



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe