File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes How to get Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply 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: 181
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()?
 
jQuery in Action, 2nd edition
 
subject: How to get "jboss server binding address" from servlet
 
Threads others viewed
JBoss + Amazon EC2 + IP Binding
Bind jboss server on system IP address in linux
Shutting down diff JBOSS IP aliases Instances on one Machine
Accessing JBOSS with IP
deploying three web application with ctxPath=/
developer file tools