ServiceMix
  1. ServiceMix
  2. SM-618

create a file based servicemix-file service engine with nice support for URIs

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: servicemix-file
    • Labels:
      None

      Activity

      Show
      Guillaume Nodet added a comment - Fixed URL: http://svn.apache.org/viewvc?view=rev&rev=469018
      Hide
      Allan Brighton added a comment -

      I could get file polling to work in this version only by adding these 2 lines to FilePollingEndpoint.processFile():

      exchange.setService(getTargetService());
      exchange.setInterfaceName(getInterfaceName());

      I was only setting targetService in xbean.xml, so maybe only the first line is needed?

      Show
      Allan Brighton added a comment - I could get file polling to work in this version only by adding these 2 lines to FilePollingEndpoint.processFile(): exchange.setService(getTargetService()); exchange.setInterfaceName(getInterfaceName()); I was only setting targetService in xbean.xml, so maybe only the first line is needed?
      Hide
      Guillaume Nodet added a comment -

      I have not included your patch, but I put these attributes in a new base class for endpoint.
      See URL: http://svn.apache.org/viewvc?view=rev&rev=468487

      Show
      Guillaume Nodet added a comment - I have not included your patch, but I put these attributes in a new base class for endpoint. See URL: http://svn.apache.org/viewvc?view=rev&rev=468487
      Hide
      Allan Brighton added a comment -

      I added a small patch that allows you to configure the target service in the FilePollingEndpoint. Please take a look and let me know if it looks correct.

      Show
      Allan Brighton added a comment - I added a small patch that allows you to configure the target service in the FilePollingEndpoint. Please take a look and let me know if it looks correct.
      Hide
      Allan Brighton added a comment -

      I made some minor changes to servicemix-file so that you can configure a targetService. I have attached the svn patch.
      This is my first attempt at this, so please take a look and let me know if everything is ok.

      I added
      + private QName targetInterfaceName;
      + private QName targetService;
      + private String targetEndpoint;

      and associated methods to the FilePollingEndpoint, although I'm not exactly sure if or how the targetEndpoint and targetInterface are used or set. I used the targetService in my test (in xbean.xml) and could wire up two file serviceunits to copy files from one directory to another.

      Show
      Allan Brighton added a comment - I made some minor changes to servicemix-file so that you can configure a targetService. I have attached the svn patch. This is my first attempt at this, so please take a look and let me know if everything is ok. I added + private QName targetInterfaceName; + private QName targetService; + private String targetEndpoint; and associated methods to the FilePollingEndpoint, although I'm not exactly sure if or how the targetEndpoint and targetInterface are used or set. I used the targetService in my test (in xbean.xml) and could wire up two file serviceunits to copy files from one directory to another.

        People

        • Assignee:
          james strachan
          Reporter:
          james strachan
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development