[ 
https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16924436#comment-16924436
 ] 

Markus Schuch edited comment on CONNECTORS-1566 at 9/6/19 5:20 PM:
-------------------------------------------------------------------

The only idea i have is to switch the ThreadContext classloader during 
initialization like this:
{code:java}
ClassLoader savedCl = Thread.currentThread().getContextClassLoader();    
try {
    //assuming this.getClass() is a connector class
    
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
      
    ... init ws stubs ...

} finally {
    Thread.currentThread().setContextClassLoader(savedCl);
} {code}


was (Author: schuchm):
The only idea i have is to switch the ThreadContext classloader during 
initialization like this:
{code:java}
ClassLoader savedCl = Thread.currentThread().getContextClassLoader();    
try {
    //assuming this.getClass() is a connector class
    
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
      
    ... init ws stubs

} finally {
    Thread.currentThread().setContextClassLoader(savedCl);
} {code}

> Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
> ------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-1566
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1566
>             Project: ManifoldCF
>          Issue Type: Task
>          Components: LiveLink connector
>    Affects Versions: ManifoldCF 2.12
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>            Priority: Major
>             Fix For: ManifoldCF 2.14
>
>         Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png
>
>
> LAPI is being deprecated.  We need to develop a replacement for it using the 
> ContentServer Web Services API.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to