Hello Fred,

Good to know that your tenant setup is up and running. Yes, you may need
some customization to achieve your business use case.

As an additional note, for accessing specific tenant data from the master,
you will need to pass tenantId as a request parameter.



-- 
Thanks & Regards
---
Arun Patidar
Manager, Enterprise Software Development

HotWax Systems Pvt Ltd.

www.hotwaxsystems.com


On Fri, Dec 22, 2017 at 4:37 AM, Fred Wang <fred.w...@nugraviton.com> wrote:

> I reinstalled master and tenant t1. it works now. I used following
> gradle command to create tenant:
> gradlew createTenant -PtenantId=t1 -PtenantName="great first tenant"
> -PdomainName=t1.ness.com -PtenantReaders=seed,seed-initial,ext,demo
> -PdbPlatform=P -PdbIp=127.0.0.1 -PdbUser=ofbiz -PdbPassword=ofbiz
>
> made sure the hosts file was correct and then updated the master and
> t1's web site with the specific domain name, like master.ness.com and
> t1.ness.com.  Now https://mast.ness.com:8443/ecommerce goes to master
> web store  https://t1.ness.com:8443/ecommerce goes to t1's web store.
>
> Our business model requires master web store can display and place
> order for any tenant's product, and payments have to go to master
> first, then transferred to tenants after fee. Looks like it the OOTB
> multi-tenancy won't help much, we may have to develop our own
> multi-tenancy.
>
> On 21 December 2017 at 00:19, Arun Patidar
> <arun.pati...@hotwaxsystems.com> wrote:
> > Hello Fred,
> >
> > Did you use TenantDomainName entity for specifying the domain name of
> your
> > tenant?  This will work for both front-end and back-end.
> >
> > You will need to make an entry in hosts file to redirect 'abc.com'
> tenant
> > on your local server(127.0.0.1) as similar to 'localhost'
> >
> >
> >
> >
> > --
> > Thanks & Regards
> > ---
> > Arun Patidar
> > Manager, Enterprise Software Development
> >
> > www.hotwax.co <http://www.hotwaxsystems.com/>www.hotwaxsystems.com
> >
> >
> > On Thu, Dec 21, 2017 at 1:27 PM, Fred Wang <fred.w...@nugraviton.com>
> wrote:
> >
> >> "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" <arun.pati...@hotwaxsystems.com
> >
> >> 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 <fred.w...@nugraviton.com>
> >> 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
> <arun.patidar@hotwaxsystems.
> >> com
> >> > >
> >> > wrote:
> >> >
> >> > > Hello Fred,
> >> > >
> >> > > Please see my comments inline:
> >> > >
> >> > > On Wed, Dec 20, 2017 at 6:03 AM, Wang, Fred LDB:EX <
> >> fred.w...@bcldb.com>
> >> > > 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
> >> > > >
> >> > >
> >> >
> >>
>

Reply via email to