Re: [Lift] How to configure two database connection in Lift?

2009-12-07 Thread David Pollak
I've put together some sample code that describes how to access multiple databases from a single Lift app. It's enclosed. First, you need to identify different ConnectionIdentifiers for each connection: package com.liftcode.model import net.liftweb._ import mapper._ case object CatConnectionId

[Lift] How to configure two database connection in Lift?

2009-12-05 Thread Neil.Lv
Hi all, I want to use two databases, but i don't know how to configure it. Does anybody know that how to configure two database connection in Lift? 1: I add two ConnectionIdentifier in the Boot.class ### object OneDB extends ConnectionIdentifier { def jndiName = "one" } object TwoDB