aspose file tools*
The moose likes JBoss/WildFly and the fly likes How to get Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to get "jboss server binding address" from servlet" Watch "How to get "jboss server binding address" from servlet" New topic
Author

How to get "jboss server binding address" from servlet

Periyasamy Ayyakannu
Greenhorn

Joined: Jan 17, 2012
Posts: 1
I am running jboss server in linux box

I am creating three virtual ip in linux

10.3.2.123
10.3.2.124
10.3.2.125

I have created three jboss server instance and run separately

e.g.

>sh run.sh -b 10.3.2.123 -c node1

>sh run.sh -b 10.3.2.124 -c node2

>sh run.sh -b 10.3.2.125 -c node3



Application will be accesssed through loadbalanced server
loadbalanced server
loadbalanced server ip is 10.3.2.100
http://10.3.2.100/myapp/logon?user=test&pwd=test

In my logon servlet,
I need to get jboss "binding ip address" or "jboss server info" in my servlet code

Please share me your thoughts



D. Ogranos
Ranch Hand

Joined: Feb 02, 2009
Posts: 214
Not sure about the bind address, but if you just need the server's IP, maybe you could use something like java.net.InetAddress.getLocalHost().getHostAddress()?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get "jboss server binding address" from servlet