Multitenant question

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

Multitenant question

jonatan soto
Hi all,

How can I determine the tenant I want to use in the ecommerce app?

It's using the default delegator so I've got the 'no store been defined...'
message

TIA

--
-----

Jonatan Soto
Reply | Threaded
Open this post in threaded view
|

Re: Multitenant question

David-DiSiD Technologies
You can determine the tenant used in the ecomm. app. setting the paramenter entityDelegatorName in the web.xml file of the web application, for example:
...
<context-param>
    <param-name>entityDelegatorName</param-name>
    <param-value>default#tenantId</param-value>
    <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
</context-param>
...
where tenantId is the Tenant ID of your ecomm. app.

If you are using the default delegator and "No store been defined...", it means that you haven't loaded/created the store data in the default database.
You can load the demo data (that creates an store) doing this:
$OFBIZ_HOME> java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=seed,demo
And you can load the demo data into your tenant DDBB doing this:
$OFBIZ_HOME> java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=seed,demo -delegator=default#tenantId
Cheers,
David
DiSiD Technologies, S.L. - http://www.disid.com
Reply | Threaded
Open this post in threaded view
|

Re: Multitenant question

jonatan soto
Thanks a lot David!

On Mon, Jul 26, 2010 at 11:15 AM, David-DiSiD Technologies <
[hidden email]> wrote:

>
> You can determine the tenant used in the ecomm. app. setting the paramenter
> entityDelegatorName in the web.xml file of the web application, for
> example:
>
>
> > ...
> > <context-param>
> >     <param-name>entityDelegatorName</param-name>
> >     <param-value>default#tenantId</param-value>
> >     <description>The Name of the Entity Delegator to use, defined in
> > entityengine.xml</description>
> > </context-param>
> > ...
> >
> where tenantId is the Tenant ID of your ecomm. app.
>
> If you are using the default delegator and "No store been defined...", it
> means that you haven't loaded/created the store data in the default
> database.
> You can load the demo data (that creates an store) doing this:
>
>
> > $OFBIZ_HOME> java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install
> > -readers=seed,demo
> >
>
> And you can load the demo data into your tenant DDBB doing this:
>
>
> > $OFBIZ_HOME> java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install
> > -readers=seed,demo -delegator=default#tenantId
> >
>
> Cheers,
>
> -----
> David Cervera - dcervera at disid dot com
> DiSiD Technologies, S.L. - http://www.disid.com
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Multitenant-question-tp2302056p2302074.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



--
-----

Jonatan Soto
Reply | Threaded
Open this post in threaded view
|

Re: Multitenant question

Erwan de FERRIERES
In reply to this post by David-DiSiD Technologies
Le 26/07/2010 11:15, David-DiSiD Technologies a écrit :

>
> You can determine the tenant used in the ecomm. app. setting the paramenter
> entityDelegatorName in the web.xml file of the web application, for example:
>
>
>> ...
>> <context-param>
>>      <param-name>entityDelegatorName</param-name>
>>      <param-value>default#tenantId</param-value>
>>      <description>The Name of the Entity Delegator to use, defined in
>> entityengine.xml</description>
>> </context-param>
>> ...
>>
> where tenantId is the Tenant ID of your ecomm. app.
>
> If you are using the default delegator and "No store been defined...", it
> means that you haven't loaded/created the store data in the default
> database.
> You can load the demo data (that creates an store) doing this:
>
>
>> $OFBIZ_HOME>  java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install
>> -readers=seed,demo
>>
>
> And you can load the demo data into your tenant DDBB doing this:
>
>
>> $OFBIZ_HOME>  java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install
>> -readers=seed,demo -delegator=default#tenantId
>>
>
> Cheers,
>
> -----
> David Cervera - dcervera at disid dot com
> DiSiD Technologies, S.L. - http://www.disid.com
Hi David,

could you add this information to this wiki page :
https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support

Thanks,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Multitenant question

David-DiSiD Technologies
Reply | Threaded
Open this post in threaded view
|

Re: Multitenant question

imssk
  Yes I am going to try it with sun jdk. Will post my updates here ...

Regards,
Shailen ([hidden email])
+91-9216020360
Mohali, Chandigarh - 160062


On Tuesday 27 July 2010 03:08 PM, David-DiSiD Technologies wrote:
> Done:
> https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support#Multitenancysupport-Settingtheecommerceapp.touseanspecificTenantDatabase
>
> -----
> David Cervera - dcervera at disid dot com
> DiSiD Technologies, S.L. - http://www.disid.com
Reply | Threaded
Open this post in threaded view
|

Re: Multitenant question

imssk
  Sorry I posted in wrong thread.

Regards,
Shailen ([hidden email])
+91-9216020360
Mohali, Chandigarh - 160062


On Tuesday 27 July 2010 03:26 PM, Shailen wrote:

> Yes I am going to try it with sun jdk. Will post my updates here ...
> Regards,
> Shailen ([hidden email])
> +91-9216020360
> Mohali, Chandigarh - 160062
>
> On Tuesday 27 July 2010 03:08 PM, David-DiSiD Technologies wrote:
>> Done:
>> https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support#Multitenancysupport-Settingtheecommerceapp.touseanspecificTenantDatabase
>>
>> -----
>> David Cervera - dcervera at disid dot com
>> DiSiD Technologies, S.L. -http://www.disid.com