Skip to content

Shared Library

Johannes Heucher edited this page Jun 13, 2022 · 2 revisions

A Shared Library (short Shared Lib) is a set of JAR files that can be used by several plugins of the Xyna Factory like Service Groups, Triggers and Filters.

This provides a way to share context between different plugins and saves memory in comparison to the reuse individual copies of the JAR files in different places.

Shared Libs are defined in Runtime Contexts and can be shared between them by defining Requirements.

Modify or Create a Shared Lib

The Shared Lib is stored in the folder $XYNA_HOME/revisions/rev_<id>/saved/sharedLibs/<sharedlibname>/ in the Revision corresponding to the Workspace you are working in. Create it if necessary, then copy all JAR files into that folder. In order to activate the changes, execute the CLI command <syntaxhighlight lang="bash"></syntaxhighlight>

 ./xynafactory.sh '''deploysharedlib''' -sharedLibName &lt;arg&gt;&lt;/arg&gt; [-applicationName] [-versionName]&lt;arg&gt;&#93;

&lt;/syntaxhighlight&gt;</arg>

See Also

Clone this wiki locally