Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] questions on local/remote support for generic server adapters

And this is the behavior that kinda forces us to always say we support remote
hosts even though we don't (deployment wise)

The hostname is not really enough to decide wether we support it or not as an server adapter.


Hi Rochelle,

I'm not sure I understand your question. The field is always editable, but
the wizard already uses SocketUtil.isLocalhost() to determine if you are
typing a local hostname. If you type anything that is a remote host or IP,
it filters out server adapters that only support local servers.

Tim deBoer

"General discussion of project-wide or architectural issues."
08/01/2008 04:42 PM
Re: [wtp-dev] questions on local/remote support for generic server

Hi Max,

Thanks for your response.  If I understand it correctly, it sounds like
you want to keep the ability to enter something other than localhost in
that field, but that something is another name for the local host.  Is
that accurate?  If so, your pointer to the isRemote and isLocal code was
helpful, but leads me to ask my next question:

There is a method isLocalHost in
org.eclipse.wst.server.core.util.SocketUtil which seems like it should
be used for this exact purpose.  It seems like the field could remain
editable, but that the framework should enforce isLocalHost returns true
for any changes.

Do you agree?  If so, I will file it.  If not, please tell me what
usecase I have missed.


Max Rydahl Andersen wrote:
On Mon, 21 Jul 2008 23:38:53 +0200, <raccah@xxxxxxxxxxxx> wrote:

Can you give more detail?  Are you saying it makes sense to allow
editing the hostname because even though a server only supports local,
there are some remote actions you can do on it?  If so, what are they?

open a browser and do is a common
remote action is it not?

And, if you have any info as to what setting the remote host support
flag to true is supposed to provide, I would appreciate it.

The only remote thing I remember without looking at code is that
automatic deployment works at a different interval than local servers. I
would do a find references on the isRemote or is isLocal in eclipse and
see what it reveals.



Max Rydahl Andersen wrote:
Also, why is the Hostname shown as an editable field in the general
of the OverviewEditorPart if supportsRemoteHosts is false?  Shouldn't
this be non-editable if it is shown at all?
just because it is local in context of deployment/debugging/launching
a hostname is relevant for connecting externally. We use the hostname
as a
parameter for which host/ip the server should bind to.

wtp-dev mailing list
wtp-dev mailing list

wtp-dev mailing list


Back to the top