You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by BJ Freeman <bj...@free-man.net> on 2010/04/03 20:33:06 UTC

Re: svn commit: r930470 - /ofbiz/trunk/framework/entity/data/TenantDemoData.xml

how about put a link to the wiki page

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


adrianc@apache.org sent the following on 4/2/2010 9:41 PM:
> Author: adrianc
> Date: Sat Apr  3 04:41:21 2010
> New Revision: 930470
> 
> URL: http://svn.apache.org/viewvc?rev=930470&view=rev
> Log:
> Changed a demo data comment to help clear up some confusion.
> 
> Modified:
>     ofbiz/trunk/framework/entity/data/TenantDemoData.xml
> 
> Modified: ofbiz/trunk/framework/entity/data/TenantDemoData.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/data/TenantDemoData.xml?rev=930470&r1=930469&r2=930470&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/entity/data/TenantDemoData.xml (original)
> +++ ofbiz/trunk/framework/entity/data/TenantDemoData.xml Sat Apr  3 04:41:21 2010
> @@ -18,9 +18,7 @@ specific language governing permissions 
>  under the License.
>  -->
>  <entity-engine-xml>
> -    <!-- to prep the databases for these (just like the main databases need to be prepped) run something like:
> -        java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -delegator=default#DEMO1
> -    -->
> +    <!-- Search the Ofbiz Wiki for "Multitenancy support" to get instructions on how to setup multi-tenancy -->
>      <Tenant tenantId="DEMO1" tenantName="Demo Tenant One"/>
>      <TenantDataSource tenantId="DEMO1" entityGroupName="org.ofbiz" 
>          jdbcUri="jdbc:derby:ofbiz_DEMO1;create=true" jdbcUsername="ofbiz" jdbcPassword="ofbiz"/>
> 
> 
> 



Re: svn commit: r930470 - /ofbiz/trunk/framework/entity/data/TenantDemoData.xml

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes, but BJ you put a recommendation at the bottom
<<It is suggested to use derby to test then look at the /runtime/data/derby/ for the dbnames that ofbiz will be looking for.>>

I agree about 1st testing with Derby. But should we not rather recommend to then look at the jdbcUri attribute of TenantDataSource 
entities in TenantDemoData.xml?

I put this comment at bottom of https://issues.apache.org/jira/browse/OFBIZ-3582

<<Also, of course if you don't work with the OOTB DB setting you have to tweak around inside TenantDataSource and eventually create 
your own DBs before, since, for instance, Posgres and MySql JDBC drivers don't support the create=true syntax in the jdbc-uri
For instance I use "jdbc:postgresql://127.0.0.1/ofbizDEMO1">>

Jacques

From: "Vikas Mayur" <vi...@gmail.com>
> +1
>
> Vikas
>
> On Sun, Apr 4, 2010 at 12:03 AM, BJ Freeman <bj...@free-man.net> wrote:
>
>> how about put a link to the wiki page
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin
>> <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> >
>>
>>
>> adrianc@apache.org sent the following on 4/2/2010 9:41 PM:
>> > Author: adrianc
>> > Date: Sat Apr  3 04:41:21 2010
>> > New Revision: 930470
>> >
>> > URL: http://svn.apache.org/viewvc?rev=930470&view=rev
>> > Log:
>> > Changed a demo data comment to help clear up some confusion.
>> >
>> > Modified:
>> >     ofbiz/trunk/framework/entity/data/TenantDemoData.xml
>> >
>> > Modified: ofbiz/trunk/framework/entity/data/TenantDemoData.xml
>> > URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/data/TenantDemoData.xml?rev=930470&r1=930469&r2=930470&view=diff
>> >
>> ==============================================================================
>> > --- ofbiz/trunk/framework/entity/data/TenantDemoData.xml (original)
>> > +++ ofbiz/trunk/framework/entity/data/TenantDemoData.xml Sat Apr  3
>> 04:41:21 2010
>> > @@ -18,9 +18,7 @@ specific language governing permissions
>> >  under the License.
>> >  -->
>> >  <entity-engine-xml>
>> > -    <!-- to prep the databases for these (just like the main databases
>> need to be prepped) run something like:
>> > -        java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install
>> -delegator=default#DEMO1
>> > -    -->
>> > +    <!-- Search the Ofbiz Wiki for "Multitenancy support" to get
>> instructions on how to setup multi-tenancy -->
>> >      <Tenant tenantId="DEMO1" tenantName="Demo Tenant One"/>
>> >      <TenantDataSource tenantId="DEMO1" entityGroupName="org.ofbiz"
>> >          jdbcUri="jdbc:derby:ofbiz_DEMO1;create=true"
>> jdbcUsername="ofbiz" jdbcPassword="ofbiz"/>
>> >
>> >
>> >
>>
>>
>>
> 



Re: svn commit: r930470 - /ofbiz/trunk/framework/entity/data/TenantDemoData.xml

Posted by Vikas Mayur <vi...@gmail.com>.
+1

Vikas

On Sun, Apr 4, 2010 at 12:03 AM, BJ Freeman <bj...@free-man.net> wrote:

> how about put a link to the wiki page
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
>
>
> adrianc@apache.org sent the following on 4/2/2010 9:41 PM:
> > Author: adrianc
> > Date: Sat Apr  3 04:41:21 2010
> > New Revision: 930470
> >
> > URL: http://svn.apache.org/viewvc?rev=930470&view=rev
> > Log:
> > Changed a demo data comment to help clear up some confusion.
> >
> > Modified:
> >     ofbiz/trunk/framework/entity/data/TenantDemoData.xml
> >
> > Modified: ofbiz/trunk/framework/entity/data/TenantDemoData.xml
> > URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/data/TenantDemoData.xml?rev=930470&r1=930469&r2=930470&view=diff
> >
> ==============================================================================
> > --- ofbiz/trunk/framework/entity/data/TenantDemoData.xml (original)
> > +++ ofbiz/trunk/framework/entity/data/TenantDemoData.xml Sat Apr  3
> 04:41:21 2010
> > @@ -18,9 +18,7 @@ specific language governing permissions
> >  under the License.
> >  -->
> >  <entity-engine-xml>
> > -    <!-- to prep the databases for these (just like the main databases
> need to be prepped) run something like:
> > -        java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install
> -delegator=default#DEMO1
> > -    -->
> > +    <!-- Search the Ofbiz Wiki for "Multitenancy support" to get
> instructions on how to setup multi-tenancy -->
> >      <Tenant tenantId="DEMO1" tenantName="Demo Tenant One"/>
> >      <TenantDataSource tenantId="DEMO1" entityGroupName="org.ofbiz"
> >          jdbcUri="jdbc:derby:ofbiz_DEMO1;create=true"
> jdbcUsername="ofbiz" jdbcPassword="ofbiz"/>
> >
> >
> >
>
>
>