Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2007
    Location
    London
    Posts
    2

    Adapters Classloader

    Hi

    Currently I'm working on more advanced user, session and subscribtion management in our adapters implementation. I need some service objects which are shared by MetaProvider and DataProvider implementations. I decided to use Spring as it gives great out of the box application context support.

    I have two adapters instances running on one server. The problem I've noticed is that both adapters use the same classloader and my classpath dependent resources are read just from one location (the first adapter/.../classes directory). I did some testing and it's defenitely one classloader to load them all . Which just breaks my whole idea. (I don't want to make my resources file system or directory structure dependent because it causes more trouble later).

    Am I doing something wrong? Any sugestions how to make adapter libs and resources loaded by different classloader? (just like apps in webapp/application servers)

    Thanks,
    Maciek

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    Hi

    indeed, Lightstreamer Server currently lacks a sophisticated management of multiple Adapers and uses a single classloader for all adapter code.
    Hence, isolation of adapter jars could only be achieved by implementing it on the adapter side as well.

    Dario

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    London
    Posts
    2
    It's a pitty there's no any magic solution.

    Yup, using custom adapter path driven classloader seems like the only solution for this problem.

    Thanks,
    Maciek

 

 

Similar Threads

  1. adapters.xml
    By Pradeep Chahal in forum Adapter SDKs
    Replies: 1
    Last Post: April 26th, 2010, 03:50 PM

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:53 PM.