aspose file tools
The moose likes JBoss and the fly likes How to get Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
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: 210
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to get "jboss server binding address" from servlet
 
Similar Threads
Accessing JBOSS with IP
Bind jboss server on system IP address in linux
deploying three web application with ctxPath=/
Shutting down diff JBOSS IP aliases Instances on one Machine
JBoss + Amazon EC2 + IP Binding