Re: default domain by app

Gene McCullough <[email protected]>
Newsgroups gmane.comp.java.keel.user
Message-ID <[email protected]>
I've set up keel's tables for authentication in a db: keel.  My
application data is stored in its own db: mydb.  I want to use the
applications that have already been developed by the community that use
those tables, but I don't want to combine the databases into one.  I'd
like my application to be configured to look at a default db, preferably
through configuration, without having to hard code a domain into all
models.  After writing this I see that I can configure a dbpool (don't
know how exactly, docs scarce their also), and a simple search and
replace on my application could get that code implemented, so I may now
just need to figure out the svc-domain-config.

I've followed Shash's posts on setting up multiple jdbc elements, my one
question now is exactly where do i put that (which file)?


NOTE: I noticed in anon CVS that keel-server/sample-conf and all subdirs
are empty.  Is that correct?

thanks,
gene

On Wed, 2004-04-14 at 11:32, Shash Chatterjee wrote:
> Gene,
> 
> > Is there a way to set, in the configuration, a default domain for my
> > app?
> > 
> > The whole domain system eludes me, and I can't find much in the way 
> > of docs on it.  (probably just not looking in the right place, i'm 
> > sure) If you could point me to that, that would be a great help, as 
> > I'd like to understand more than I'd like my problem fixed.  If I 
> > had a clue, I might quit bothering you with stupid questions so you 
> > could actually do some development yourself.
> 
> See my reply to Machiel regarding docs.  Docs will happen if we as a community
> think those are valuable and more are willing to pitch in to get it done.  I
> realize this is a chicken-and-egg problem, but it is also true that, however
> imperfect, there is quite a bit to get started with.
> 
> Now with domains.  This has no docs.  A domain is just a key now that gets you
> to associate a DB, a authentication system, etc.  Each logged in user is
> assigned a domain, and the way to do that is thorugh the register.login
> (app-register) model.  If you use the Keel supplied models and JSPs (nothing
> says that is the only way to login, you can extend/replace the login model),
> register.prompt-login provides a selection mechanism for all the configured
> domain names.  When the user clocks the login button, register.login then puts
> the domain name in the users session (a cookie, and in the UserEnv.).  You
> could create multiple URL's on your home page, for example, to have
> "Customer", "Visitor", "Supplier" login links, and supply the "domain"
> parameter in the URL.
> 
> I am not sure what you mean by "domain per app", given what I just said about
> Keel domains.  It is really a "domain per user".  What were you expecting to
> accomplish with a different domain per app?
> 
> Shash
> _______________________________________________
> User mailing list
> [email protected]
> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.