Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get "jboss server binding address" from servlet

 
Periyasamy Ayyakannu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic