• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie : Obtain the name of a server in Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie : Obtain the name of a server in Java


  • Subject: Re: Newbie : Obtain the name of a server in Java
  • From: email@hidden
  • Date: Fri, 8 Sep 2006 18:57:58 -1000

Careful with the Application.host() call. It can rely on the underlying operating system's sense of identity. Therefor its not always a complete domain name, i.e. you'll occasionally get "www" instead of "www.foobar.com".

In addition its returning the name of the computer the WebObjects Application is running on. If you have separate machines for Web server and App server you could be in trouble. The solution I ended up with was to set a property in JavaMonitor specifying the DNS of the main web server.



Date: Fri, 8 Sep 2006 13:33:36 -0400
From: Gilles MATHURIN <email@hidden>
Subject: Re: Newbie : Obtain the name of a server in Java
To: Thomas Meyer <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

Thank you Mr Meyer

it's the simpliest answer i obtain along with the DirectAction trick
and because i am a newbie, it is the one i manage to include in my App.
However i will try to implement it in a more complete way by
integrating the various solutions that came along thoses last days.
In orfer to get a method that work with the as many browsers as
possible.
But for now, it fits my needs.


Regards.

GM

Le 8 sept. 06 à 11:23, Thomas Meyer a écrit :

try this.host() in Application.java



------------------------------

_______________________________________________
Webobjects-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/webobjects-dev

End of Webobjects-dev Digest, Vol 3, Issue 646
**********************************************

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Obtain the name of a server in WO
  • Next by Date: Re: Obtain the name of a server in WO
  • Previous by thread: Re: Newbie : Obtain the name of a server in Java
  • Next by thread: Another newbie question concerning Hyperlink
  • Index(es):
    • Date
    • Thread