You can either parse the string to extract the IP string (preferred) or
use reflection (easily broken).
InetAddress addr = InetAddress.getByName(ipstring);
String host = addr.getHostName();
getHostName is very dependent on your local DNS environment.
Andy.
On 15/10/2014 10:06, Charms Styler wrote:
Hi AndyG, this looks awesome, checked it out couldn't figure-out a
way to get the request host name. do you reckon there's any workaround
for it?
Hi Romain , I was saying that I only have the openejb, no webserver
just openejb. client uses ejbd to access
Thanks.
On Wed, Oct 15, 2014 at 1:48 AM, AndyG [via TomEE & OpenEJB]
<[email protected]> wrote:
Try the following within the method call:i
String info =
org.apache.openejb.server.context.RequestInfos.info().toString();
Andy.
On 14/10/2014 21:29, Romain Manni-Bucau wrote:
So ther
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/OpenEJB-Client-IP-HOST-tp4672259p4672294.html
Sent from the TomEE Dev mailing list archive at Nabble.com.
--
Andy Gumbrecht
https://twitter.com/AndyGeeDe
http://www.tomitribe.com