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

Minilang call-service always use transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 14.12.01, 13.07.01
    • framework
    • 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-example.diff
          2 kB
          Simone Viani
        2. OFBIZ-5619.patch
          2 kB
          Simone Viani

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: