I have configured Ofbiz to run in multi-tenant. Domain name is being
picked up correctly and I can get to the correct tenants. I have JAMES running as the SMTP,POP,IMAP server. But I am confused configuring the JavaMail Listener container. It looks like the MCA is started only once for the "default" delegator. How can I get the JavaMail Listener to poll multiple email servers for the multiple domains that my tenant delegators represent. Thanks in advance! Pat |
Hi Pat,
Currently, most of the values of regarding how tenants are to be configured and to operate are pulled from .property files or hard coded. This has been identified in issue https://issues.apache.org/jira/browse/OFBIZ-5458. Adrian has suggested the way to solve this in the associated comments. Most likely your issue is related. Please investigate. If you feel it's not, feel free to create a new issue. Regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com On Mon, Jan 20, 2014 at 12:11 AM, freap <[hidden email]> wrote: > I have configured Ofbiz to run in multi-tenant. Domain name is being > picked up correctly and I can get to the correct tenants. > > I have JAMES running as the SMTP,POP,IMAP server. > > But I am confused configuring the JavaMail Listener container. It looks > like the MCA is started only once for the "default" delegator. > > How can I get the JavaMail Listener to poll multiple email servers for the > multiple domains that my tenant delegators represent. > > Thanks in advance! > Pat > > > |
Pierre,
Thanks for the response. As a work-around I created additional unique JavaMail containers in the ofbiz-component.xml file. Changing the "delegator-name" to reflect the correct tenant id "default#tenantId" and pointing the mail.host, mail.user, mail.pass to the correct consolidating account on the mail server. As for the mail server (JAMES) I use the "recipientRewriteTable" to direct all email from a domain.com to a single [hidden email]. This is then the user account that I use for mail.host,mail.user, mail.pass. It appears that when Ofbiz starts, the unique JavaMail containers are created and poll the mail server individually. Each one picks up only the mail for the domain related to the #default#tenantId" and then attaches to the correct partyId for the tenantId. The changes require ofbiz to be restarted, thus defeating one of the advantages of the multitenant configuration. Do you see any other problem with this implementation? Thanks, Patrick Frea On 1/20/2014 2:25 AM, Pierre Smits wrote: > Hi Pat, > > > Currently, most of the values of regarding how tenants are to be configured > and to operate are pulled from .property files or hard coded. This has been > identified in issue https://issues.apache.org/jira/browse/OFBIZ-5458. > Adrian has suggested the way to solve this in the associated comments. > > Most likely your issue is related. Please investigate. If you feel it's > not, feel free to create a new issue. > > Regards, > > Pierre Smits > > *ORRTIZ.COM <http://www.orrtiz.com>* > Services & Solutions for Cloud- > Based Manufacturing, Professional > Services and Retail & Trade > http://www.orrtiz.com > > > On Mon, Jan 20, 2014 at 12:11 AM, freap <[hidden email]> wrote: > >> I have configured Ofbiz to run in multi-tenant. Domain name is being >> picked up correctly and I can get to the correct tenants. >> >> I have JAMES running as the SMTP,POP,IMAP server. >> >> But I am confused configuring the JavaMail Listener container. It looks >> like the MCA is started only once for the "default" delegator. >> >> How can I get the JavaMail Listener to poll multiple email servers for the >> multiple domains that my tenant delegators represent. >> >> Thanks in advance! >> Pat >> >> >> |
Hi Patrick,
Good that you got it working. I don't see a problem having this work around in your system. Could you share your code in the ofbiz-configuration.xml file? I am interested in how you had it done. Regards, Pierre Smits *ORRTIZ.COM <http://www.orrtiz.com>* Services & Solutions for Cloud- Based Manufacturing, Professional Services and Retail & Trade http://www.orrtiz.com |
Free forum by Nabble | Edit this page |