Is it possible for an Adapter to receive command line arguments passed to the JVM (LS) at startup? Let me know if there is way to do the same.
Printable View
Is it possible for an Adapter to receive command line arguments passed to the JVM (LS) at startup? Let me know if there is way to do the same.
Unless there is some hook provided by the JVM, this is not supported.
You could achieve the same effect (that is: sending to the Adapters information supplied at launch time) by leveraging JVM properties.
Such properties are set by -D<name>=<value> on the command line and inquiried through System.getProperty. This is available also from Adapter code.