Results 1 to 2 of 2
  1. #1

    What java libs are available to adapters?

    In the bin/LS.sh script, there are those system properties that are passed to the LS java process:

    com.lightstreamer.kernel_lib_path
    com.lightstreamer.internal_lib_path
    com.lightstreamer.logging_lib_path
    com.lightstreamer.database_lib_path

    Apart from those, there is also a cpath parameter that specifies the classpath of the LS java process.

    My questions are:

    1) what are those system properties for exactly? Which of them are available to adapters, and which are not? Because from my test at least, it seems internal_lib_path is not but logging_lib_path is, so could you please clarify? The reason for this is obvious: if we include multiple versions of the same lib, we can easily get class conflicts.

    2) cpath will be available to both LS kernel and adapters? Could you please confirm?

    Thanks for your help

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    We have separated the Server classpath in these variables in order to allow the Server to setup multiple classloaders. But this is actually internal stuff and could have been hidden in Server code. It was made explicit, hence providing a degree of freedom, for handling special cases and for allowing the integrator to move the jars in different places (just in case there was a reason).

    Normally, none of the jars listed by the four JVM properties are visible from the Adapters. The Adapters only see the main classpath, which is the "cpath" variable and is also visible from the kernel. However, this classpath contains very little and no external libraries.

    Only by explicit configuration can you have "com.lightstreamer.logging_lib_path" visible from the Adapters. So I suppose that you have the <classloader> element set to "log-enabled" in adapters.xml, perhaps after cloning some of our demos. But this has strong restrictions; see the details of the <classloader> element here (open the file as a text file).

 

 

Similar Threads

  1. Replies: 7
    Last Post: December 13th, 2011, 04:08 PM
  2. How to JSON Object in Java Adapters as input
    By arunj in forum Adapter APIs
    Replies: 4
    Last Post: February 10th, 2011, 12:32 PM
  3. New Java-to-DDE Demo Available
    By Alessandro in forum Client APIs
    Replies: 0
    Last Post: October 15th, 2010, 08:07 PM
  4. New Java Demo Available!
    By Alessandro in forum Client APIs
    Replies: 0
    Last Post: June 18th, 2010, 03:10 PM
  5. Replies: 1
    Last Post: May 21st, 2009, 09:41 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:33 PM.