ServiceMix
  1. ServiceMix
  2. SM-275

Consider enhancing file based components with servingxml

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      I confess, I don't really understand all this jbi thing.. but I think this might be a useful binding component if someone was willing to wrap it up as such.

      http://servingxml.sourceforge.net/

      It's a flat-file to xml transformer. It claims to do edi. I'm not sure if a NM can contain xml or what.. but I thought I'd make this connection to the mailing list anyway.

      There are no Sub-Tasks for this issue.

        Activity

        Hide
        Gert Vanthienen added a comment -

        Bulk-closing older issues for Apache ServiceMix 3.x since we're no longer actively working on these at the moment.

        Show
        Gert Vanthienen added a comment - Bulk-closing older issues for Apache ServiceMix 3.x since we're no longer actively working on these at the moment.
        Hide
        Guilhelm Panaget added a comment -

        Hello,

        I don't know if anyone is still watching this issue... I have a few questions :

        • I deployed successfully the installer in a 3.3.1 servicemix session... but where can i configure the way a file is converted to xml... I suppose I have to build an su ?
        • AFAIU, it works with files, would it be difficult to make it work with a (non-xml content) JMS message ?

        Thanks

        Guilhelm

        Show
        Guilhelm Panaget added a comment - Hello, I don't know if anyone is still watching this issue... I have a few questions : I deployed successfully the installer in a 3.3.1 servicemix session... but where can i configure the way a file is converted to xml... I suppose I have to build an su ? AFAIU, it works with files, would it be difficult to make it work with a (non-xml content) JMS message ? Thanks Guilhelm
        Hide
        Guillaume Nodet added a comment -

        Actually, the servingXml initialization / cleanup should be performed in the start / stop method, so that
        the activate / deactivate method can be removed.
        If you could provide a new patch, that would be nice.

        Show
        Guillaume Nodet added a comment - Actually, the servingXml initialization / cleanup should be performed in the start / stop method, so that the activate / deactivate method can be removed. If you could provide a new patch, that would be nice.
        Hide
        James Bradt added a comment -

        Guillaume,

        I took a quick look at your suggestions.

        I agree that we can reduce the code a bit. However, I think that we need to keep the activate method as it initializes the servingXml internals. I'm not sure about the deactivate method.

        I also noticed that you have added a patch, but, being new to jira, I'm not sure if that means that you've made changes to my attachment or something else.

        Are you still looking for me to correct the formatting and to remove the extraneous methods/classes?

        Thanks,
        James

        Show
        James Bradt added a comment - Guillaume, I took a quick look at your suggestions. I agree that we can reduce the code a bit. However, I think that we need to keep the activate method as it initializes the servingXml internals. I'm not sure about the deactivate method. I also noticed that you have added a patch, but, being new to jira, I'm not sure if that means that you've made changes to my attachment or something else. Are you still looking for me to correct the formatting and to remove the extraneous methods/classes? Thanks, James
        Hide
        Guillaume Nodet added a comment -

        Wow, thanks a lot !

        I think the code could be reduced a lot.

        • the bootstrap can be removed (it seems to do nothing interesting)
        • the endpoint can be simplied too as lots of methods are already
          defined on the parent class (getRole, activate, deactivate, getProcessor,
          send, done, fail, etc ...)
          I think the only needed methods are: start, stop and processInOut

        If you could use spaces and not tabs, it would be awesome
        I will take a deeper look next week.

        Show
        Guillaume Nodet added a comment - Wow, thanks a lot ! I think the code could be reduced a lot. the bootstrap can be removed (it seems to do nothing interesting) the endpoint can be simplied too as lots of methods are already defined on the parent class (getRole, activate, deactivate, getProcessor, send, done, fail, etc ...) I think the only needed methods are: start, stop and processInOut If you could use spaces and not tabs, it would be awesome I will take a deeper look next week.
        Hide
        Guillaume Nodet added a comment -

        I have uploaded servingxml in servicemix private repo:
        http://servicemix.org/m2-repo/servingXml/servingXml/0.6.3/servingXml-0.6.3.jar

        This repo is already listed in the root pom.

        Show
        Guillaume Nodet added a comment - I have uploaded servingxml in servicemix private repo: http://servicemix.org/m2-repo/servingXml/servingXml/0.6.3/servingXml-0.6.3.jar This repo is already listed in the root pom.
        Hide
        James Bradt added a comment -

        servingXML service engine

        Show
        James Bradt added a comment - servingXML service engine
        Hide
        James Bradt added a comment -

        I am attaching a zip archive with a possible solution - using servingXML inside of a service engine (instead of a binding component).

        I have done some base testing with it using both the NMR content and attachement. It seems to work.

        I have included a readme.txt within the zip to explain things as much as I could.

        Please review and improve. All suggestions/improvements are welcomed

        Show
        James Bradt added a comment - I am attaching a zip archive with a possible solution - using servingXML inside of a service engine (instead of a binding component). I have done some base testing with it using both the NMR content and attachement. It seems to work. I have included a readme.txt within the zip to explain things as much as I could. Please review and improve. All suggestions/improvements are welcomed
        Hide
        Guillaume Nodet added a comment -

        It seems a bit like Virtual XML Garden

        Show
        Guillaume Nodet added a comment - It seems a bit like Virtual XML Garden

          People

          • Assignee:
            Unassigned
            Reporter:
            Guillaume Nodet
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development