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 |
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:
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: And you can load the demo data into your tenant DDBB doing this: Cheers,
David
DiSiD Technologies, S.L. - http://www.disid.com |
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 |
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 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 |
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 |
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 |
Free forum by Nabble | Edit this page |