Query Regarding ExecutionContext

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Query Regarding ExecutionContext

Pankaj.Jain
Hi

I am trying to implement muti tenancy in ofbiz for that I am trying to use

concept of execution context. By now I understood that a singleton object
can use factory instance to create the execution context. Four objects
that are in execution context are: delegator, dispatcher, userLogin and
security.

Regarding this I want to clarify some questions :

1) In multi tenant environment, Do we need to create execution context on
each tenant ? or on each user in a tenant?

2) We can define multiple delegator in entityengine.xml, but I am not
clear about how to use dispatcher in multitenant environment. Will there
be any concept of private and public services depends upon local
dispatcher ? ( ie. dispatcher specific services)

3) In multitenant environment, after creating execution context. Will we
put it in dispatch context  so that we can access it in services ? In
service definitions we get the delegator n other objects form dispatch
context, then how will we get the delegator form execution context?  In
some way if we get that, Do we need to change the mechanism of getting the

delegator in all ofbiz services and other places ??

Thanks & Regards:

Pankaj Jain | L&T infotech |Navi Mumbai
Mobile: +91 9920218945
Email : [hidden email]
www.Lntinfotech.com

"Whatever the mind of man can conceive & believe, it can achieve."

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech
Internal Use Only   L&T Infotech General Business

This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.

______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Query Regarding ExecutionContext

Adrian Crum
There is a branch that contains an initial implementation of the
ExecutionContext -
https://svn.apache.org/repos/asf/ofbiz/branches/executioncontext20090812.

Details on how the ExecutionContext will support multi-tenancy have not
been discussed.

The DispatchContext will be refactored so that it IS an
ExecutionContext. The refactoring will eliminate the need to rewrite
Java services.

-Adrian

[hidden email] wrote:

> Hi
>
> I am trying to implement muti tenancy in ofbiz for that I am trying to use
>
> concept of execution context. By now I understood that a singleton object
> can use factory instance to create the execution context. Four objects
> that are in execution context are: delegator, dispatcher, userLogin and
> security.
>
> Regarding this I want to clarify some questions :
>
> 1) In multi tenant environment, Do we need to create execution context on
> each tenant ? or on each user in a tenant?
>
> 2) We can define multiple delegator in entityengine.xml, but I am not
> clear about how to use dispatcher in multitenant environment. Will there
> be any concept of private and public services depends upon local
> dispatcher ? ( ie. dispatcher specific services)
>
> 3) In multitenant environment, after creating execution context. Will we
> put it in dispatch context  so that we can access it in services ? In
> service definitions we get the delegator n other objects form dispatch
> context, then how will we get the delegator form execution context?  In
> some way if we get that, Do we need to change the mechanism of getting the
>
> delegator in all ofbiz services and other places ??
>
> Thanks & Regards:
>
> Pankaj Jain | L&T infotech |Navi Mumbai
> Mobile: +91 9920218945
> Email : [hidden email]
> www.Lntinfotech.com
>
> "Whatever the mind of man can conceive & believe, it can achieve."
>
> Larsen & Toubro Infotech Ltd.
> www.Lntinfotech.com
>
> This Document is classified as:
>
> L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech
> Internal Use Only   L&T Infotech General Business
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do
> not use or disseminate the information, notify the sender and delete it
> from your system.
>
> ______________________________________________________________________