0 Replies Latest reply: Sep 8, 2009 9:06 AM by 843830 RSS

    JBI Shared Libraries

    843830
      Hi. I have arrived to a new project and they are working with JBI (developing BPEL) with Glassfish + openESB.
      I have no experience with JBI and I've been request to do some research about JBI Shared libraries. The problem comes for us when two composite aplications have to share one resource (in this case an .xsd file that includes other schema files). I don't know how to do such a thing. What I've done so far is:
      - create a new project (as a java project in netbeans) with the needed files
      - create the jbi.xml file under the META-INF folder
      <?xml version="1.0" encoding="UTF-8"?>
      <jbi 
          xmlns="http://java.sun.com/xml/ns/jbi" version="1.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns:identification="http://www.sun.com/jbi/descriptor/identification/v1.0">
          
          <!-- identification information about this shared library-->
          <shared-library class-loader-delegation="self-first">
              <identification>
                  <name>my-shared-lib</name>
                  <description>JBI shared library</description>
                  <identification:VersionInfo component-version="1.0.0" build-number="000001"/>
              </identification>
              <shared-library-class-path>
                  <path-element>./xsd/Requests/request1.xsd</path-element>
                  <path-element>./xsd/Requests/types.xsd</path-element>
              </shared-library-class-path>
          </shared-library>
      </jbi>
      - deploy in the glassfish server via web interface

      But when the POJO class that needs that file it is not available (neither in the classpath). What I have to do or what I'm doing wrong?.

      Thanks in advance