Sorry for the late reply. You can extend the controller servlet to add
this multi-tenant functionality. It may not be straight forward and you
may to fixes issues here and there. I don't remember the all the details
but I think I had to change some thing in the ContextFilter apart from
the control servlet. Sample code snippet is:
String tenantId = request.getParameter("tenantId");
delegator = DelegatorFactory.getDelegator("default#"+ tenantId);
I think you can also write your on filter and chain it in the request
pipeline though, I have not tried this myself.
Thanks,
Raj
On Sunday 24 July 2011 05:55 PM, Jacques Le Roux wrote:
> I guess nobody did it before. If you do it, you could add your
> experience to the Multi Tenant page in wiki
>
https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support>
> TIA
>
> Jacques
>
> From: "arini.rusda" <
[hidden email]>
>> Hi, I am trying to using multitenancy support ofbiz, but when it
>> comes to web
>> service i got confused.
>>
>> I have a service in java which has option "export=true". In this
>> service, i
>> am doing some query to database. Because now i'm implementing
>> multitenancy,
>> i got confused how to make the delegator choose the appropriate
>> connection
>> to the appropriate schema. I am making the tenantId as one of the IN
>> parameter but i don't know what to do with it. Any hints?
>>
>> -----
>> Best Regards,
>> Arini Rusda
>> Informatics Department, Sepuluh Nopember Institute of Technology
>> --
>> View this message in context:
>>
http://ofbiz.135035.n4.nabble.com/How-to-set-delegator-based-on-tenantId-passed-via-web-service-tp3673046p3673046.html>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>