I did not have the time to read all the thread... I find useful to be able to 
read the local dispatcher name from DispatchContext in
services to know from which webapp the service was called (webtools being a 
specific case, for instance when you run services
from there...)

HTH

Jacques

From: "Adrian Crum" <[email protected]>
I think this has something to do with each application being a separate web 
application (in a J2EE sense), but I'm just guessing.
There seems to be a reason you would need some services local to (or restricted 
to) a web application, but I don't know what the
reason is.

-Adrian

On 7/26/2012 1:32 PM, Jacopo Cappellato wrote:
On Jul 26, 2012, at 11:51 AM, Jacopo Cappellato wrote:

* but the main question is: considering the layout described above, what is the 
purpose/goal of having several instances of
LocalDispatcher with different names? Shouldn't we simply create one instance 
per delegator?
As a side note, this change(after the recent refactoring) should be rather easy 
to implement; in fact it will be a matter of
changing the signature of the

LocalDispatcher dispatcher = ServiceContainer.getLocalDispatcher(String 
dispatcherName, Delegator delegator);

into:

LocalDispatcher dispatcher = ServiceContainer.getLocalDispatcher(Delegator 
delegator);

and we will no more have to add the dispatcher name to the web.xml file of all 
the web applications, for example:

   <context-param>
     <param-name>localDispatcherName</param-name>
     <param-value>webtools</param-value>
     <description>A unique name used to identify/recognize the local dispatcher for 
the Service Engine</description>
   </context-param>

Kind regards,

Jacopo


Reply via email to