ODE
  1. ODE
  2. ODE-709

Make SU classloader available for process.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.3
    • Fix Version/s: 1.3.4
    • Labels:
      None

      Description

      When using JBI deployment, process is not aware of classes/libraries in SU. This prevents from using e.g. Java functions in XPath, which are packaged in SU. Instead, one is forced to pack them in shared library or into system classloader - both solutions are baaad.

      1. ODE-709.patch
        13 kB
        Maciej Prochniak
      2. ping.tgz
        4 kB
        Maciej Prochniak

        Activity

        Hide
        Maciej Prochniak added a comment -

        Proposed patch.
        In Process object classloader is stored - it's set as Thread.currentClassloader during deployment.
        Then process' classloader is used when processing jobs.
        Also SU classloader has to be used during compilation - otherwise xpath functions are not properly resolved.

        Show
        Maciej Prochniak added a comment - Proposed patch. In Process object classloader is stored - it's set as Thread.currentClassloader during deployment. Then process' classloader is used when processing jobs. Also SU classloader has to be used during compilation - otherwise xpath functions are not properly resolved.
        Hide
        Maciej Prochniak added a comment -

        Standard ping-pong example with java function inside Ping.bpel

        Show
        Maciej Prochniak added a comment - Standard ping-pong example with java function inside Ping.bpel
        Hide
        Rafal Rusin added a comment -

        This is a great feature. Could you provide an usage example, which we'll put into distro/src/examples-jbi (and I could test this feature)? You can base on http://top.touk.pl/git?p=ode/ode-smx-jug;a=summary. There is a working example of process ServiceAssembly using maven2.

        Show
        Rafal Rusin added a comment - This is a great feature. Could you provide an usage example, which we'll put into distro/src/examples-jbi (and I could test this feature)? You can base on http://top.touk.pl/git?p=ode/ode-smx-jug;a=summary . There is a working example of process ServiceAssembly using maven2.
        Hide
        Rafal Rusin added a comment -

        Sorry, I haven't noticed that you did this already

        Show
        Rafal Rusin added a comment - Sorry, I haven't noticed that you did this already
        Hide
        Rafal Rusin added a comment -

        I tested your patch. It works great. I just had to merge it into current 1.X head.
        I submitted it. Thanks!
        I included ASF License in example files and added it into distro/src/examples-jbi/maven2/ping-pong. Thanks for the example as well!

        Show
        Rafal Rusin added a comment - I tested your patch. It works great. I just had to merge it into current 1.X head. I submitted it. Thanks! I included ASF License in example files and added it into distro/src/examples-jbi/maven2/ping-pong. Thanks for the example as well!
        Hide
        Rafal Rusin added a comment -

        I'll leave this issue open to merge it into trunk in future.

        Show
        Rafal Rusin added a comment - I'll leave this issue open to merge it into trunk in future.

          People

          • Assignee:
            Unassigned
            Reporter:
            Maciej Prochniak
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development