Multitenancy In ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Multitenancy In ofbiz

Ofbiz Consultant
I have enabled multi-tenancy in my installation.
I have hence created two schemas
in my database which can be connected using
 respective tenant IDs. Now how can I
separate the individual ecommerce stores
 by URLS. http://localhost:8080/ecommerce 
points to the ofbiz schema

Reply | Threaded
Open this post in threaded view
|

Re: Multitenancy In ofbiz

rajsaini
You will need two difference sites and each site having its own store
and CMS web site.

If you want to serve multiple tenants from the same site, you will need
to find a way to associate a tenant with the e-commerce site as it does
not work similar to other back office application as there is no
authentication required for accessing the e-commerce application.

Thanks,

Raj

On 04/01/11 01:34, Ofbiz Consultant wrote:
> I have enabled multi-tenancy in my installation.
> I have hence created two schemas
> in my database which can be connected using
>   respective tenant IDs. Now how can I
> separate the individual ecommerce stores
>   by URLS. http://localhost:8080/ecommerce
> points to the ofbiz schema
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Multitenancy In ofbiz

c.schinzer
You will need to create and mount two web apps, one for each store, as it is
in the web-apps web.xml where you define the delegator to be used for it.

A simple way would be:
(1) copy "ecommerce" folder to "myecommerce" folder
(2) change ofbiz-component.xml in "myecommerce" to alter the mount point for
your web app
(3) edit myecommerce/webapp/WEB-INF/web.xml to alter the delegator:
...
    <context-param>
        <param-name>entityDelegatorName</param-name>
        <param-value>default#TENANTNAME</param-value>
        <description>The Name of the Entity Delegator to use, defined in
entityengine.xml</description>
    </context-param>
...

You can repeat this for any other tenant's shop you may want to create. I am
using this concept for 4+ shops for different tenants on a single instance.

Note: By doing such you will have decoupled the code in "myecommerce" from
the ofbiz deliverables and you will need to maintain changes to "ecommerce"
manually into that folder.

Note 2: You will likely touch and customize sreen definitions, ftls, other
obfiz assets etc.So I do strongly recommend to do this only once you've
understood the application concept and you do NOT use TRUNK, but rather
release branches (as they have much less maintenance changes being applied).

Regards


Carsten


2011/4/1 Raj Saini <[hidden email]>

> You will need two difference sites and each site having its own store and
> CMS web site.
>
> If you want to serve multiple tenants from the same site, you will need to
> find a way to associate a tenant with the e-commerce site as it does not
> work similar to other back office application as there is no authentication
> required for accessing the e-commerce application.
>
> Thanks,
>
> Raj
>
>
> On 04/01/11 01:34, Ofbiz Consultant wrote:
>
>> I have enabled multi-tenancy in my installation.
>> I have hence created two schemas
>> in my database which can be connected using
>>  respective tenant IDs. Now how can I
>> separate the individual ecommerce stores
>>  by URLS. http://localhost:8080/ecommerce
>> points to the ofbiz schema
>>
>>
>>
>


--

Best

Carsten Schinzer

Waisenhausstr. 53a
80637 München
Germany