Customer Portal

Packaging the plugin directory in an enterprise application

Comments 1

  • Avatar
    mvarecha
    0
    Comment actions Permalink
    Hello,

    for engine of version 2.7.1 I recommend ...
    1] move jar files from plugins to /WEB-INF/lib directory (exclude all JDBC jars)
    2] move plugins directory with rest of files to /WEB-INF
    3] init engine properly:
    Plugins.setSimpleClassLoading(true); // plugins won't use their own extra classloader; plugin classes are loaded by web-app classloader
    EngineInitializer.initEngine(pluginDirs, null, null); // pluginDirs is URL[] containing URLs to plugin directories inside your WAR. You can get it from ServletContext.

    Regards,
    Martin

Please sign in to leave a comment.