You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kevin Peterson <qh...@gmail.com> on 2014/07/08 11:36:05 UTC

How to implement multi tenancy with separate database in struts and hibernate?

Hi, 

We have an application wherein we want to keep separate database for each client. We want to achieve this using multi tenancy approach. A working example will be highly appreciated.

Thanks,
Kevin Peterson



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to implement multi tenancy with separate database in struts and hibernate?

Posted by Néstor Boscán <ne...@gmail.com>.
If you want to recreate this feature yourself with different databases
you're going to have to map your entrypoint (initial URL) to your specific
client and from there to the specific database datasource. Once you have
the data source, associate it with the SessionFactory and everything will
work correctly from there.

Regards,

Néstor


On Tue, Jul 8, 2014 at 3:38 PM, john feng <jo...@gmail.com> wrote:

> Oracle 12c should fit your needs. Unless you want to recreate this feature
> by your self.
>
>
> On Tue, Jul 8, 2014 at 5:36 AM, Kevin Peterson <qh...@gmail.com>
> wrote:
>
> > Hi,
> >
> > We have an application wherein we want to keep separate database for each
> > client. We want to achieve this using multi tenancy approach. A working
> > example will be highly appreciated.
> >
> > Thanks,
> > Kevin Peterson
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>

Re: How to implement multi tenancy with separate database in struts and hibernate?

Posted by john feng <jo...@gmail.com>.
Oracle 12c should fit your needs. Unless you want to recreate this feature
by your self.


On Tue, Jul 8, 2014 at 5:36 AM, Kevin Peterson <qh...@gmail.com> wrote:

> Hi,
>
> We have an application wherein we want to keep separate database for each
> client. We want to achieve this using multi tenancy approach. A working
> example will be highly appreciated.
>
> Thanks,
> Kevin Peterson
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>