ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Wolfmayr <ingo.wolfm...@wolfix.at>
Subject AW: Multi Tenant
Date Fri, 25 Sep 2015 15:11:48 GMT
Hi Stefan,

this is what I do to create a new tenant (in the command line - linux): f.ex. tenant "demo"

1) create databases
2) Update /framework/entity/config/entityengine.xml

./ant create-tenant --> follow instructions

Load seed:
java \-Xmx512m \-XX:MaxPermSize=128m \-jar ofbiz.jar \load-data \-readers=seed \-delegator=default#demo

I assume that is what your missing:
Create admin user:
./ant load-tenant-admin-user-login -DdelegatorId=default#demo -DuserLoginId=admin-demo

If you take a look at for example /applications/accounting/ofbiz-component.xml you will find
multiple enity-resources with a reader-name defined. 

from framework/entity/config/entityengine.xml:
    <!-- defining:
        tenant       = OFBiz and External Tenant Data
        seed         = OFBiz and External Seed Data - to be maintained along with source and
updated whenever a system deployment is updated
        seed-initial = OFBiz and External Seed Data - to be maintained along with source like
other seed data, but only loaded initially and not updated when a system is updated except
manually reviewing each line
        demo         = OFBiz Only Demo Data
        ext          = External General Data (custom)
        ext-test     = External Test Data (custom)
        ext-demo     = External Demo Data (custom)

Hope that helps.

Best regards,

-----Urspr√ľngliche Nachricht-----
Von: Stefan Badenhorst [mailto:stefan.badenhorst@mi-c3.com] 
Gesendet: Freitag, 25. September 2015 10:18
An: user@ofbiz.apache.org
Betreff: Multi Tenant

Good day.

I hope someone can help me setting up an additional tenant.
I'm having trouble logging in as the administrator.

I have downloaded OfBiz 13.07.02 and changed the configuration to connect to Postgres 9.4.

Now I have it working with the demo data loaded.
I want to add a new tenant with no demo data loaded.

I heave read many articles and tried the suggestions, the furthest I have gotten is to run
this at the command line:

ant create-tenant

At first I got errors using this and I realized that it could not create the databases that
I was specifying.
I manually created the databases with my chosen tenant id '10001'.
So now I have 2 additional databases ofbiz_10001 and ofbizolap_10001.

At the point where it asks me what data to install I have tried both 'Seed'
and 'seed-initial'. I must confess that I'm not sure what this means.

I ran the create-tenant again and this time it created 833 tables in the main database and
6 tables in the olap database.

At the end it tells me the following:
 [echo] Delegator = default#10001
 [echo] Tenant admin = '10001-admin'
 [echo] Password for tenant admin is 'ofbiz' must change on first login

I have also update the global config to show the tenant input on the login screen.

When I try to login with the above user, it tells me that the user does not exist.

Kind regards.
Stefan Badenhorst.


*Email Disclaimer*

This email message (and or any attachments) is proprietary to MI-C3, and is intended for the
original addressee/nominated recipient only and/or otherwise authorized personnel. The information
contained herein and attached is confidential. If you are not the intended recipient, please
be advised that viewing this message and any attachments, as well as copying, forwarding,
printing and disseminating any information related to this email is prohibited, and that you
should not take any action based on the content of the email and/or attachments. If you received
this email in error, please contact the sender and destroy all copies on this email and any
attachments. The views and opinion expressed in this message are those of the individual sender
of this message and do not necessarily represent the views and opinion of MI-C3. We cannot
ensure or guarantee that the integrity of this communication has been maintained or that it
is secure or error free as information can be intercepted, corrupted, lost and or subject
to interference. MI-C3 does not accept liability for any errors or omissions in the contents
of this message or for any damage resulting from the opening of this message should it contain
a virus.
View raw message