Btw, there is the error message when the server is started. ### scala.MatchError: ConnectionIdentifier(lift) ###
On Dec 6, 1:47 pm, "Neil.Lv" <anim...@gmail.com> wrote: > 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 extends ConnectionIdentifier { > > def jndiName = "two" > > } > > ### > > 2: In the User model > > How can i write the code in the method, > ### > override def dbCalculateConnectionIdentifier = { > Two > } > ### > > Thanks for any suggestion! > > Cheers, > Neil -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.