Does anyone know that what's wrong with it ? Cheers, Neil
On Jan 10, 9:50 pm, "Neil.Lv" <anim...@gmail.com> wrote: > Here is the test code . > > g...@github.com:anim510/two_db_demo.git > > It works fine when using only one database, it failed when using two > db connection. > > Thanks.! > > Cheers, > Neil > > On Jan 10, 5:04 pm, "Neil.Lv" <anim...@gmail.com> wrote: > > > Hi all, > > > There is a problem that i switch the M7 to M8, the JNDI is error. > > > I didn't change anything before moving M7 to M8. > > > It seems that the Lift looks for the lift ConnectionIdentifier not > > the OneDB or TwoDB. > > > ### > > java.lang.NullPointerException: Looking for Connection Identifier > > ConnectionIden > > tifier(lift) but failed to find either a JNDI data source with the > > name lift or > > a lift connection manager with the correct name > > ### > > > I have two DB connection, in the Boot.scala > > ### > > object OneDB extends ConnectionIdentifier { > > def jndiName = "one"} > > > object TwoDB extends ConnectionIdentifier { > > def jndiName = "two"} > > > --- > > class Boot { > > def boot { > > if (!DB.jndiJdbcConnAvailable_?) { > > DB.defineConnectionManager(OneDB, DBVendor) > > DB.defineConnectionManager(TwoDB, DBVendor_2) > > } > > }} > > > ### > > > This work fine under the M7, but is broken in the M8, > > > Does anyone know what's wrong with it ? > > > 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.