Login  Register

Re: Users - Services and dispatchers

Posted by Souvik Saha Bhowmik on May 21, 2006; 5:38pm
URL: http://ofbiz.116.s1.nabble.com/Users-Services-and-dispatchers-tp139382p139383.html

Hi
This is the Soa concept. The services can be called across application nusing runSynch. If u call the static methods using this PriceServices.calculateProductPrice() , u can only access it from the same application...unless u point to the requirred jar file. But if u use the service name and call using runSynch and passing the service name, u can call the servioce from anywhere. also it helps u call a service from a different server or instance of Ofbiz. In that case u only need the service definition and pass the requirrec parameters. U don need to know its implementation.

 
On 5/21/06, Firas A. <[hidden email]> wrote:
Hello,

I need to understand one thing: What's the added value of running services
throw a dispacther. For ex:
dispatcher.runSync("calculateProductPrice", priceContext);

Would it be wrong to call PriceServices.calculateProductPrice() directly
(and pass all the requested parameters to it)?

Thanks!

</Firas>



_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users