Sorry, I have no idea what you mean BJ.

Are you referring to the fact that you have to have a Tenant record configured 
(in the Tenant entity's database table) before the Tenant really exists? If so, 
yes, that is required. You can't just refer to any tenantId that you want to, 
information about it has to be in the tenant database.

-David


On Mar 27, 2010, at 6:37 AM, Customer Service BusinessesNetwork.com wrote:

> I made a comment in the jira in response to being ask about ecommerce,
> that they  would have to build on your work.
> you responded that all that was necessary was to add the delegator to
> the web.xml.
> So I followed your instructions and presented a patch.
> I find it interesting that now you state it requires more than just the
> web.xml change, which is what I said originally.
> 
> 
> =========================
> 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>
> 
> 
> David E. Jones (JIRA) sent the following on 3/26/2010 2:16 PM:
>>    [ 
>> https://issues.apache.org/jira/browse/OFBIZ-3540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850352#action_12850352
>>  ] 
>> 
>> David E. Jones commented on OFBIZ-3540:
>> ---------------------------------------
>> 
>> BJ: Please don't add patches to an issue that are outside the scope of the 
>> issue. The additional ecommerce webapps should go in a separate issue so 
>> they can be evaluated separately and have their own issue lifecycle. I'm 
>> removing it from this issue to make this easier to manage.
>> 
>> About the problem you're seeing: the error message says there is no Tenant 
>> record for that ID, meaning there is no record in the Tenant entity's 
>> database table for that ID. Based on what you wrote here it is because you 
>> are only loading the seed data and the OOTB Tenant records are demo data 
>> since there is nothing inherent to the system about them, and even the IDs 
>> are meant to convey that they are for demo purposes only (ie "DEMO1" and 
>> "DEMO2").
>> 
>>> Multi-Tenant Support (Login Based)
>>> ----------------------------------
>>> 
>>>                Key: OFBIZ-3540
>>>                URL: https://issues.apache.org/jira/browse/OFBIZ-3540
>>>            Project: OFBiz
>>>         Issue Type: New Feature
>>>         Components: framework
>>>   Affects Versions: SVN trunk
>>>           Reporter: David E. Jones
>>>           Assignee: David E. Jones
>>>           Priority: Minor
>>>            Fix For: SVN trunk
>>> 
>>>        Attachments: ecommercetenatsadd.patch, MultiTenant20100305.patch, 
>>> MultiTenant20100305.patch, MultiTenant20100305.patch
>>> 
>>> 
>>> Support multiple tenants in a single instance of OFBiz. Each tenant will 
>>> have its own databases (one for each entity group). Database settings will 
>>> override the settings on the delegator with parameters from an entity 
>>> record so that new tenants can be added on the fly without restarting the 
>>> server (new tenants will still need to have data loaded in their databases 
>>> just like any other).
>>> If valid Tenant ID is specified when user logs in then webapp context will 
>>> be setup with tools for that tenant as a variation of the base delegator 
>>> (including delegator, dispatcher, security, authz, visit, server hit, etc 
>>> handled for it).
>>> Demo data includes a couple of sample tenants. After loading demo data (ant 
>>> run-install) try logging in to webtools or any other admin app with the 
>>> Tenant ID of "DEMO1".
>>> NOTE: this patch also addresses some stability issues with the LoginWorker, 
>>> ControlServlet, Visit, and ServerHit functionality that was exposed while 
>>> developing this. For example, after a logout functionality that runs in the 
>>> ControlServlet may fail because things that were in the session before are 
>>> not there any more. In this patch there is code to rebuild the request and 
>>> session after logout (necessary for changing tenants, helpful for these 
>>> other issues).
>> 
> 
> 

Reply via email to