Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IPAddress of the weblogic instance..

Status
Not open for further replies.

patnim17

Programmer
Jun 19, 2005
111
0
0
US
Hi,
I have a Stateless Session Bean deployed in Weblogic 8.1 in a clustered environment. IN the stateless session bean, is there a way to identify the IP address of the weblogic instance (Machine IP) where this bean is currently running?

pat
 

Code:
String hostAddress = "";
try {
	hostAddress = java.net.getHostAddress();
} catch (Exception e) {}

BTW, this is really a J2SE question, not J2EE, so should have been post in forum269

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
I seem to recall that doing Socket stuff is 'forbidden' in the EJB Specification. Just in case that's what you wanted the IP for.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top