[Opensource] How to change the default database context
Michael Rimov
rimovm at centercomp.com
Mon Aug 5 19:22:32 PDT 2002
At 02:25 PM 8/5/2002 +1000, you wrote:
>I have two contexts setup in my expresso-config.xml file
>i.e.
>default and myotherconn
>
>I have the setup/ security tables in both and want to startup on either
>depending on the application.
>Calling the correct db during processing is not a problem, however, on
>startup, if i havent logged into the "myotherconn" db (via expresso), the
>default connection is used and my controller security (for the
>"myotherconn" application) is not setup here.
Eddie,
Have you just tried supplying the db=[whatever] parameter in the URL to
your controller? When the controller calls checkLogin, it SHOULD set it up
for the db parameter specified.
Let me know if it doesn't work.
-Mike
More information about the Opensource
mailing list