Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How can I get the server information that I've configured in WTP?
How can I get the server information that I've configured in WTP? [message #180578] Thu, 05 October 2006 04:40 Go to next message
Eclipse UserFriend
Originally posted by: allenmacyoung.gmail.com

Hi all,

I don't know if I ask this question in the right place. I want to develop
my own plugin and I want to get the server information which is configured
in WTP. I know that we all configure this information in Preferences->Server->Installed
Runtime page. I want to use this information from my plugin, how can I do
this? Is there any API I can use?

Thanks a lot.
Re: How can I get the server information that I've configured in WTP? [message #180642 is a reply to message #180578] Thu, 05 October 2006 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

Take a look at org.eclipse.wst.server.core plugin. The api to start with
is ServerCore.getRuntimes().

- Konstantin
Re: How can I get the server information that I've configured in WTP? [message #180979 is a reply to message #180642] Fri, 06 October 2006 03:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: allenmacyoung.gmail.com

Thanks. I was wondering if I can get what I want from the PreferenceStore.

> Take a look at org.eclipse.wst.server.core plugin. The api to start
> with is ServerCore.getRuntimes().
>
> - Konstantin
>
Re: How can I get the server information that I've configured in WTP? [message #181016 is a reply to message #180979] Fri, 06 October 2006 12:50 Go to previous message
Eclipse UserFriend
Originally posted by: kosta.bea.com

Allen,

I would not recommend going directly to the preferences store. Accessing
the PreferenceStore directly makes your code vulnerable to
implementation changes in the future releases of WTP. You get a lot more
protection from changes by using the published API.

- Konstantin
Previous Topic:Source code org.eclipse.wst.common.componentcore
Next Topic:how to run Application Client(AWT) for EJB using eclipse?
Goto Forum:
  


Current Time: Thu Mar 28 13:04:26 GMT 2024

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

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

Back to the top