You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2018/01/03 08:29:00 UTC

[jira] [Commented] (OFBIZ-9233) Enable a service to run by a specific service engine

    [ https://issues.apache.org/jira/browse/OFBIZ-9233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16309286#comment-16309286 ] 

Nicolas Malin commented on OFBIZ-9233:
--------------------------------------

I review this patch and It's seems complicate to mixing service definition and executing plan.

I propose to thinking about an other way to do this with separate them. We can introduce an other model job plan definition that can be dedicate on each environment like this
{code}
<services-job-plan>
    <service-job service-name="sendEmail">
       <send-to-pool pool="dedicateEmailPool">
    </service-job>
    <service-job service-name="createOrder">
       <send-to-pool pool="dedicateServicePool" run-by-instance="ofbizOrder" run-by-user-login="orderRobot">
    </service-job>
</services-job-plan>
{code}

The most advantage would be don't modify the service definition to introduce the execution plan.

> Enable a service to run by a specific service engine
> ----------------------------------------------------
>
>                 Key: OFBIZ-9233
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9233
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Shi Jinghai
>            Assignee: Shi Jinghai
>            Priority: Minor
>         Attachments: OFBIZ-9233-20170301.patch, OFBIZ-9233-20170413.patch, OFBIZ-9233-MultiServiceEnginesEnv.png
>
>
> Currently, all of the services of OFBiz are run by the 'default' service engine.
> In a project, we have to make a service run by different service engines rather than the 'default' one, i.e. order services run by 'order' service engine and 'orderpool', shipment services run by 'shipment' service engine and 'shipmentpool'.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)