|
|
|
Re: Eclipse Plugin connecting to and ebj3 server application. [message #435987 is a reply to message #435418] |
Mon, 29 August 2005 04:20 |
Eclipse User |
|
|
|
Originally posted by: eclipse.vnws.com
You can search. It was asked and answered times.
Robert wrote:
> Hi everyone,
> I'm learning how to build eclipse plug ins (to eventually deploy in the
> RCP environment) and am trying to connect to a server application
> written using the new ejb3 standard.
>
> i am using the following code to connect from my standalone application
> (this code works in the application but not in the plugin)
>
> HelloWorld hw;
> try{
> Context ctx = new InitialContext();
> Object o = ctx.lookup(HelloWorld.class.getName());
> hw = (HelloWorld)o;
> }catch (NamingException e){
> System.out.println("it fucked up!");
> }
> what i'm trying to do is move from a standalone application to an
> eclipse plugin.
>
> now from information that i got from another developer he believes
> that "You need to set the thread classloader before your
> call initialcontext (I think)."
>
> My questions are: is this right? and how do i do this?
>
> I have skimmed through "building commercial quality eclipse plug ins"
> (Clayberg et.al.) but i think what im trying to do is beyond the scope
> of this book. i would really appreciate it if someone has any tutorials
> or examples that they would be willing to send me links to. i will post
> the solution to this problem when i find a solution that works.
>
> Thanks in advance for all your help.
>
> Robert
|
|
|
Powered by
FUDForum. Page generated in 0.03343 seconds