Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

Sharing libraries between applications


By default the libraries for applications contain Java modules are defined in the deployment element for each application. For example:
      <application name="Aircraft">
        <deployment>
           <lib url="aircraft.jar" />
        </deployment>
        ...
      </application>
However each application using a different ClassLoader, you will have exceptions if these applications share object types datas.
classloaders
In that case, if some jar files are common to several applications, a deployment element can be put at the top of the applications elements children. For example:
      <applications>
        <deployment>
           <lib url="commonLibrary.jar" />
        </deployment>      
        <application name="Aircraft">
           <deployment>
              <lib url="aircraft.jar" />
           </deployment>
        ...
        </application>
        <application name="Cockpit">
           <deployment>
              <lib url="cockpit.jar" />
           </deployment>
        ...
        </application>   
      </applications>

See also


Categories: config

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence