aspose file tools
The moose likes JBoss and the fly likes localhost and machine name bound to jboss.bind.address 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 "localhost and machine name bound to jboss.bind.address" Watch "localhost and machine name bound to jboss.bind.address" New topic
Author

localhost and machine name bound to jboss.bind.address

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
Hi guys,

Is there a way to bind both the localhost and the machine name to jboss.bind.address? Basically I want to be able to access the url http://localhost:8080 as well as http://<machine-name>:8080

Here's the extract from jboss-service.xml of jboss4.2.2GA

<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

Thanks
Preetham


"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8145
    
  52

How about starting JBoss with -b 0.0.0.0 option. That way, you can access the system using localhost, machineName and even the IP address.


[My Blog] [JavaRanch Journal]
Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
thanks Jai Kiran...that works!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: localhost and machine name bound to jboss.bind.address
 
Similar Threads
Configuration problem
How Tomcat Works book - development question
Not able to start with Tomcat
Losing session attribute
tomcat startup problem