Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5619

Minilang call-service always use transaction

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 14.12.01, 13.07.01
    • Component/s: framework
    • Labels:
      None

      Description

      Minilang call-service, and some of the runSync, always use transaction, even if the called service is defined to not use it.

      GenericDispatcherFactory.java
      public Map<String, Object> runSync(String serviceName, Map<String, ? extends Object> context, int transactionTimeout, boolean requireNewTransaction) throws ServiceAuthException, ServiceValidationException, GenericServiceException {
        // ...
        ModelService cloned = new ModelService(service);
        // ...
      }
      
      ModelService.java
      public boolean useTransaction;
      // ...
      public ModelService(ModelService model) {
        // ...
        this.useTransaction = model.useTransaction || true;
        // ...
      }
      

        Attachments

        1. OFBIZ-5619.patch
          2 kB
          Simone Viani
        2. OFBIZ-5619-example.diff
          2 kB
          Simone Viani

          Activity

            People

            • Assignee:
              jacopoc Jacopo Cappellato
              Reporter:
              sivi-maps Simone Viani
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: