• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get "jboss server binding address" from servlet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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()?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic