Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » CLASS loading, RMI and Eclipse plugin
CLASS loading, RMI and Eclipse plugin [message #438296] Mon, 21 June 2004 01:59 Go to next message
Ted is currently offline TedFriend
Messages: 22
Registered: July 2009
Junior Member
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 #438472 is a reply to message #438296] Fri, 25 June 2004 09:05 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Hyperthreading and eclipse
Next Topic:ContextMenu on tabbedView
Goto Forum:
  


Current Time: Wed Apr 24 16:54:02 GMT 2024

Powered by FUDForum. Page generated in 0.02417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top