Skip to main content



      Home
Home » Newcomers » Newcomers » Where to put the code for connecting to a server
Where to put the code for connecting to a server [message #242578] Sat, 08 December 2007 13:33 Go to next message
Eclipse UserFriend
Originally posted by: housh_housh.yahoo.com

Hello,

I want to speak to a JBOSS App-Server from my RCP App.

I have added a button to the toolbar and written a ConnectionAction. I
just put the JNDI code for connecting to the server into the run()
methon of my ConnectionAction.

Would you place the connection code somewhere else?

Although I have all the JBOSS Client Jars in my build-path I get
billions of class-loading exceptions (which I don't get from a "normal"
Java Client with the same JNDI code). Any ideas on that?


Thank you very much,
ex
Re: Where to put the code for connecting to a server [message #242629 is a reply to message #242578] Mon, 10 December 2007 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jakub.jurkiewicz.gmail.com

exquisitus pisze:
> Hello,
>
> I want to speak to a JBOSS App-Server from my RCP App.
>
> I have added a button to the toolbar and written a ConnectionAction. I
> just put the JNDI code for connecting to the server into the run()
> methon of my ConnectionAction.
>
> Would you place the connection code somewhere else?
>
> Although I have all the JBOSS Client Jars in my build-path I get
> billions of class-loading exceptions (which I don't get from a "normal"
> Java Client with the same JNDI code). Any ideas on that?
>
>
> Thank you very much,
> ex

Hi,

How did you add these jars to the build path? If you want to use them in
a plugin then you should add them to the Classpath section of the
Runtime tab in the plugin.xml file.

Hope this helps,
Jakub
http://eclipser-blog.blogspot.com
Re: Where to put the code for connecting to a server [message #242703 is a reply to message #242629] Mon, 10 December 2007 16:03 Go to previous message
Eclipse UserFriend
Originally posted by: housh_housh.yahoo.com

Thank you very much for your answer.

I wasn't aware about the fact that every plugin has its own classpath.
When I go to the "runtime" tab I just have a New and a Add button. Do I
have to add every jar of JBOSS one by one? Is there a way to add all the
Jars to the plugin's classpath at once?

again thanx,
ex


Jakub Jurkiewicz wrote:
> exquisitus pisze:
>> Hello,
>>
>> I want to speak to a JBOSS App-Server from my RCP App.
>>
>> I have added a button to the toolbar and written a ConnectionAction. I
>> just put the JNDI code for connecting to the server into the run()
>> methon of my ConnectionAction.
>>
>> Would you place the connection code somewhere else?
>>
>> Although I have all the JBOSS Client Jars in my build-path I get
>> billions of class-loading exceptions (which I don't get from a "normal"
>> Java Client with the same JNDI code). Any ideas on that?
>>
>>
>> Thank you very much,
>> ex
>
> Hi,
>
> How did you add these jars to the build path? If you want to use them in
> a plugin then you should add them to the Classpath section of the
> Runtime tab in the plugin.xml file.
>
> Hope this helps,
> Jakub
> http://eclipser-blog.blogspot.com
>
Previous Topic:What is the Search icon?
Next Topic:Pattern EMF
Goto Forum:
  


Current Time: Sun Jul 13 16:34:40 EDT 2025

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

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

Back to the top