Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 915E5200D63 for ; Thu, 21 Dec 2017 08:58:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8FF61160C2B; Thu, 21 Dec 2017 07:58:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AF3B0160C1A for ; Thu, 21 Dec 2017 08:58:11 +0100 (CET) Received: (qmail 80855 invoked by uid 500); 21 Dec 2017 07:58:10 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 80842 invoked by uid 99); 21 Dec 2017 07:58:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Dec 2017 07:58:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3EAED1A0FD2 for ; Thu, 21 Dec 2017 07:58:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.299 X-Spam-Level: X-Spam-Status: No, score=-0.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=nugraviton-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IkBB9QVg62kg for ; Thu, 21 Dec 2017 07:58:06 +0000 (UTC) Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 36ACD5F243 for ; Thu, 21 Dec 2017 07:58:06 +0000 (UTC) Received: by mail-wr0-f170.google.com with SMTP id f8so13629489wre.4 for ; Wed, 20 Dec 2017 23:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nugraviton-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=HjZvKHR6y+qczEX0T6zs7U1YdFxaCrX2nKuYr+fwVGQ=; b=jpgQ4UxXJT2z4PqkYne1ZtZKyKsfBQl0yseT0KfUL1G09g1SKlnSp6mVNRX7mAyLK4 maWiU4zj8dKVlyKlsCQBDvDJ1MKvCZqy3srCc7lGXSsn/4Ye3kImuDKZ4G65is/B7g5M 1irzQ0LQte879tijxPD3S3gFhR3tLPFkl/qV5KlxZITdXp3XrNfw0m56kjxul7nqM96/ V2r+IrYy/Gc4pl25RpZ2bXJphroEjN5NNjoEl+UwoIaw0WzxoM7iMDRIEl34XTvCUTMS 17/tMEhbEt0dL2EzNVxkQFTnMGjauwB3+wGQIkndorMN8uNeeMjh93UPwQbKQZ0+NfmO cuEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=HjZvKHR6y+qczEX0T6zs7U1YdFxaCrX2nKuYr+fwVGQ=; b=QPK7hNHbbLzWWr6w+WQ8PMDByGgjQDDWf5bn9T1Kd/eyfswMFMonFEkKTM/+lfRszv cDOX/viTHSgYnb6eAtwYM6Gp5AwBJUSyKyRKF8m1xQnaJvdFiT64FK+rlWs+xGM+cVzE ov1Ll2UhyIZX0kjjmShJHcdigxB4BvBKfI8Dz9Ds6sQ3JZkcfL2o8nRPzQ2aVL1qtN/F f8o+MnZ1Cff1T/g//mFHkL8AOhNmHYJ9lrZlugAkSScH2M0NmuiXzQNLWIHDRAXe5yoY ghU3QknsbrQWSgk/CZkvIRMDwH4pVzT6uhTs+YqolrLgRLydz9QcZq5Wd9XQCH3RUL7n OCeA== X-Gm-Message-State: AKGB3mIqlopGYy+XeIizWKa+E9OWdOEBY0+kreKOaH+Qhx5Vdfz5ES/e vtsYRpu7Ll/K45JBh+XHtPkjZzohWat/vYtpe3x1 X-Google-Smtp-Source: ACJfBov5XhQJZzcJX9/jJqJ5Fo2Gf7WZr9Q5scJdTUjd+nrCioIlNCIC5WxYWHLxSe8G1xJpjtJfgdNcbVVSykyecfc= X-Received: by 10.223.160.111 with SMTP id l44mr11538540wrl.259.1513843078986; Wed, 20 Dec 2017 23:57:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.191.15 with HTTP; Wed, 20 Dec 2017 23:57:58 -0800 (PST) Received: by 10.223.191.15 with HTTP; Wed, 20 Dec 2017 23:57:58 -0800 (PST) In-Reply-To: References: <4048ffb3b24d4879b4f0f0f29de7f24a@e3pmbx22.idir.BCGOV> From: Fred Wang Date: Wed, 20 Dec 2017 23:57:58 -0800 Message-ID: Subject: Re: multitenancy To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary="94eb2c06671af80faa0560d50e3b" archived-at: Thu, 21 Dec 2017 07:58:12 -0000 --94eb2c06671af80faa0560d50e3b Content-Type: text/plain; charset="UTF-8" "Along with host entry on the local instance" I guess you mean to add the sub-domain to tenant's front site? Because it only runs on HTTPS 8443 OOTB, should I add HTTPS entry and HTTPS port? I am dreaming someone can build a multi-tenant docker image to demo this feature. On Dec 20, 2017 8:23 PM, "Arun Patidar" wrote: Hello Fred, You can use 'TenantDomainName' entity for setting domain name for each tenant. Along with host entry on the local instance. System is capable to identify tenant on the basis of domain/sub-domain. ''BILL_FROM_VENDOR' party id in the demo instance is 'Company'. On Thu, Dec 21, 2017 at 6:37 AM, Fred Wang wrote: > thanks Arun for the warm reply. I am new to Ofbiz, Please forgive me for > asking naive questions. Please see my comments inline. > > On 19 December 2017 at 22:09, Arun Patidar > > wrote: > > > Hello Fred, > > > > Please see my comments inline: > > > > On Wed, Dec 20, 2017 at 6:03 AM, Wang, Fred LDB:EX > > wrote: > > > > Hi All, > > > > > > Our company has chosen Ofbiz as our ecommerce/erp platform. We are > having > > > difficulties to understand and configure the multi-tenancy. > > > > > > Our plan is as below, it's kind of like Amazon/eBay model. > > > > > > 1. Each tenant will have their own front store, say tenant A will > have a > > > front store a.example.com; document says it's supported out of box, > but > > I > > > cannot find any doc that describes how to setup. > > > > > > > > > Refer below links regarding multi-tenant setup: > > https://cwiki.apache.org/confluence/x/Rwzi > > https://cwiki.apache.org/confluence/x/9oT0Ag > > > > Fred: Before this email, I have followed the docs and get tenant t1 > > running on back end before this email. The master front store is working, > > but I still cannot get t1 front store running. I have only one instance > > running. I tried to manipulate the Https Host and Https Port in t1's > > webstore. Say, master has master.ness.com:8443 and t1 has > > t1.ness.com8443. I also edited the hosts file accordingly. The dns names > > are working, however t1.ness.com is always pointing to the master site. > > not sure where went wrong. > > > > > > > > 2. The master front store is the overall front store, say example.com > , > > > which can display products from any tenants. Users have to go through > > > master store to get to tenant stores. They will be redirected to master > > > store if they go to tenant store directly. This may not be out of box, > > can > > > someone shed a light how big the change is? > > > > > > > This looks multi stores scenario instead of multi tenant. You can achive > it > > by creating multiple stores in single DB and check the products of any > > store. If Company parties are different for each store then you can go > for > > Multi store-multi company scenario. > > > > In multi tenant, system can connect with single tenant at a time. So > multi > > tenancy does not fit in this use case. > > > > Fred: that's what I thought. Our business requires multi tenant instead > > of multi stores in single DB. Looks like we have to customize here. > > > > > > 3. Tenant stores can be embedded in overall store. One can image the > > > upper part of the home page shows the promotions from some tenant > stores, > > > the lower part shows the entry point of specific tenant stores. I think > > if > > > 2 can be done, this one will be relatively simple. > > > > > > > Same as #2 > > > > > > > > > > 4. Sales order can include products from different tenant. Here comes > > > order split and aggregation, I don't think it's out of box. > > > > > > > Same as #2 > > > > > > > > > > 5. The sales orders are fulfilled by tenants, but the money has to be > > > received by master first, then transferred to tenant after fee. Again, > I > > do > > > think it's out of box. > > > > > > > You can set master party as a 'BILL_FROM_VENDOR' party on Order and set > > other party in any different role to calculate transfer amount after fee. > > You can refer Commission Run feature of OOTB for calculating transfer > > amount. > > > > Fred: is this for multi store in single DB or multi tenant? what is the > > actual party id in demo store? > > > > > > As many have reported, the documentation is short, outdated and > > > duplicated. It's pretty hard to follow documents to do the setup and > > > development. > > > > > > It's greatly appreciated if anyone can recommend some training courses, > > > video or consulting service. > > > > > > > > > Please let me know if you have any concern. > > > > > > > > -- > > Thanks & Regards > > --- > > Arun Patidar > > Manager, Enterprise Software Development > > > > www.hotwaxsystems.comwww.hotwax.co > > > > > > > > > > > > > > > > Fred Wang > > > > > > --94eb2c06671af80faa0560d50e3b--