[jira] [Updated] (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:all-tabpanel ] Shi Jinghai updated OFBIZ-9233: --- Attachment: OFBIZ-9233-20180111.patch In the OFBIZ-9233-20180111.patch, a new attribute "service-engine-name" is introduced to service element in service define file, i.e. in framework/service/servicedef/services_test_serviceengine_specific.xml: {code:xml} http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation="../dtd/services.xsd"> Test services run on the "specific" service engine Test "specific" service engine. {code} This service-engine-name value will be set to every services defined in the file, this makes it simple to change a service running pool dynamically in the future. When running an async service in scheduler, if the poolId is wrong configured according to current service define, the poolId in JobSandbox can be automatically changed. The sample is the jobId="TestJSSOnDefault" in framework/service/testdef/data/MultiServiceEngineScheduledServiceData.xml. > 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-20180111.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)
[jira] [Updated] (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:all-tabpanel ] Shi Jinghai updated OFBIZ-9233: --- Attachment: OFBIZ-9233-20170301.patch This patch implemented multi-service-engine functions. It introduces a new attribute to service define: service-engine-name. If it's not set, the default service-engine will be used, i.e. Test default service engine name. if set, the assigned service-engine will used, i.e. Test specific service engine name. The example services aboved are in 2 new test cases: testJavaDefaultInvocation and testJavaSpecificInvocation, run ./gradlew "ofbiz --test component=service" to check whether the services run by different service engines and with different poolIds. > 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 > Fix For: Trunk > > Attachments: OFBIZ-9233-20170301.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.3.15#6346)
[jira] [Updated] (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:all-tabpanel ] Shi Jinghai updated OFBIZ-9233: --- Attachment: OFBIZ-9233-MultiServiceEnginesEnv.png Environment of multiple service engines. > 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 >Priority: Minor > Fix For: Trunk > > Attachments: 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.3.15#6346)