|
Re: CLASS loading, RMI and Eclipse plugin [message #438472 is a reply to message #438296] |
Fri, 25 June 2004 09:05 |
Eclipse User |
|
|
|
Originally posted by: wohlgemuth.mpimp-golm.mpg.de
you must overwirte the classpath
Example
"Ted" <ted@x.y.z.com> wrote in message news:cb5fe5$3c0$1@eclipse.org...
> When we develop RMI java application, the class can be loaded through
> HTTP tunneling. But if we embed those RMI applications inside eclipse
> plugin, what is the mechanism for the class loading now? Since Eclipse
> plugin handle the class loading differently.
>
> Thanks in advance.
>
> Ted
>
|
|
|
Re: CLASS loading, RMI and Eclipse plugin [message #438473 is a reply to message #438296] |
Fri, 25 June 2004 09:09 |
Eclipse User |
|
|
|
Originally posted by: wohlgemuth.mpimp-golm.mpg.de
sorry touch the wrong button,
now hier is the example
load ejb from a jboss server an validate the username against a ldap server
and ejb is rmi so i think thats the way to do. It works in my application
//create temporaery eclipse classloader
ClassLoader tmp = Thread.currentThread().getContextClassLoader();
//get classloader by plugin
Thread.currentThread().setContextClassLoader(BellerophonPlug in.getDefault().
getDescriptor().getPluginClassLoader());
user = ValidatorUtil.createLDAPValidator("secret",
this.servername_.getText(),
//restore classloader
Thread.currentThread().setContextClassLoader(tmp);
cheers gert
"Ted" <ted@x.y.z.com> wrote in message news:cb5fe5$3c0$1@eclipse.org...
> When we develop RMI java application, the class can be loaded through
> HTTP tunneling. But if we embed those RMI applications inside eclipse
> plugin, what is the mechanism for the class loading now? Since Eclipse
> plugin handle the class loading differently.
>
> Thanks in advance.
>
> Ted
>
|
|
|
Powered by
FUDForum. Page generated in 0.02417 seconds