Hi Vijay,

I guess it would be good to know if I could run it off the same tomcat/ofbiz
instance....

so in essence www.myerp.com and www.yourerp.com would both go
https://x.y.z.m:PPPP/app/control/main. However the main would look at host
headers and set the datasource name based on the host headers...  and
basically set the datasource name for the session.

Is that possible?

Our aim by doing this is to set up a sandbox and production site on the same
server using the same codebase and just different databases.

Your thoughts are appreciated

Regards

Mark


On Wed, Feb 27, 2008 at 8:46 AM, Vijay <[EMAIL PROTECTED]> wrote:

> You will have to change the datasource names.
> Are you mapping the url's "www.myerp.com" and others to ofbiz specific
> urls'
> of https://x.y.z.m:PPPP/app/control/main ?
>
> The case you are trying out is perfectly possible.
>
> On Wed, Feb 27, 2008 at 12:54 AM, Mark Ellul <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I was just wondering if anyone can think of a way I could change the
> > datasource on a user per user basis...
> >
> > Basically what I am trying to do is this... When User A goes to
> > www.myerp.com they go to my ofbiz instance running on my server... but
> > based
> > on the url they are going to, their datasource is set to the myerp
> > database.
> >
> > When user B goes to www.yourerp.com they go to the same ofbiz instance
> > running on my server with the same code base but based on the URL their
> > datasource is the yourerp database...
> >
> > My aim is to have one tomcat and one code base service many URLs each
> with
> > their own database, hopefully not having to change the datasource in
> each
> > service.
> >
> > Sorry if I am not making myself clear...
> >
> > Any thoughts would be appreciated
> >
> > Regards
> >
> > Mark
> >
>

Reply via email to