1 Reply Latest reply on Aug 24, 2011 10:26 AM by lmcdasi

    Link to external libraries - JBoss as 7

    antonio_bruno

      My application prova.war must use external libraries.
      Where do I place these libraries and how do I link from my application?
      Do I have to use modules? Or I can link to external libraries in some other way?
      When using the modules, how to convert an external library in a module automatically
      with all its dependencies?

      There is a mechanism (such as a maven plugin) that automatically produces module.xml?

       

      Thanks in advance.

        • 1. Re: Link to external libraries - JBoss as 7
          lmcdasi

          I used modules. And define the module.xml definition - don't forget to add the dependecies - anyhow you'll get them as exceptions at runtime and you'll have to add them. Then the war file manifest file needs to have the keyword "Dependencies:<module name that you just defined earlier>". If your module has spi's define then in the manifest add keyword 'services' after the module name.