JiBX
  1. JiBX
  2. JIBX-128

Add ClassLoader parameter to BindingDirectory.getFactory

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.1
    • Fix Version/s: JiBX 1.1.2
    • Component/s: core
    • Labels:
      None
    • Environment:
      Windows 2003, JDK 1.4.2, WebSphere 5.x
    • Number of attachments :
      0

      Description

      Currently, the BindingDirectory.getFactory method does not take a ClassLoader argument to locate the class that is passed to it. This creates a problem in J2EE (ear deployed) applications, when the jibx-run.jar is at the root of the ear file, and the class being passed in getFactory resides in a web module within that ear file.

      Because WebSphere will not "look down" in its classloader hierarchy, it cannot find the class that is being passed in the getFactory method. This means that we must push jibx-run.jar down to the web module level, for all web modules within that ear that use it.

      If you overrode getFactory to take a ClassLoader, you could use that classloader to find the class being passed, and this would resolve the problem. Then, I could pass the ClassLoader for my web module "up" to the ear module.

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Added a new org.jibx.runtime.BindingDirectory.getFactory(name, clas, loader) method.

        Show
        Dennis Sosnoski added a comment - Added a new org.jibx.runtime.BindingDirectory.getFactory(name, clas, loader) method.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Ed Keen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: