Marion, where are you running the Java code that attempts to get the 
jboss.bind.address system property?  Is it running within, say, a web 
application deployed to JBoss?  Or is it running as a client Java app?

Just for grins, here is a JSP that I use to display the system properties.  
Packaged in a war file and accessed via the browser, it lists all system 
properties in alpha order.  According to it, the jboss.bind.address is 
"0.0.0.0" if not specified on the command line.  While this makes sense from a 
server socket perspective, it probably doesn't help you with generating URLs. 

<%@ page language="java" %>
  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE html
  |     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  |     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
  | <head>
  | <title>System Properties</title>
  | <style>
  | body
  |     { font-family: Comic Sans MS, sans-serif
  |     ; font-size: 11pt
  |     ; background-color: #EFDBCD
  |     }
  | h1
  |     { font-family: Arial Rounded MT Bold, sans-serif
  |     ; font-size: 18pt
  |     ; color: #8A6C49
  |     ; text-align: center 
  |     }
  | th
  |     { font-family: Arial Rounded MT Bold, sans-serif
  |     ; font-size: 14pt
  |     ; color: white
  |     ; background-color: #8A6C49
  |     }
  | </style>
  | </head>
  | <%!
  |     /*
  |      * The path separator character, typically a colon or semi-colon.
  |      */
  |     private String sep;
  | 
  |     /*
  |      * Places each item in a colon (or semi-colon) separated list on its
  |      * own line.  This makes the output for things such as the classpath
  |      * more legible.
  |      */    
  |     private String replaceAll(String str) {
  |         StringBuffer buf = new StringBuffer();
  |         
  |         int loc = str.indexOf(sep);
  |         while (loc > 0) {
  |             buf.append(str.substring(0, loc+1));
  |             buf.append("<br/>");
  |             str = str.substring(loc + 1);
  |             loc = str.indexOf(sep);
  |         }
  |         buf.append(str);
  |         return buf.toString();
  |     }
  | %>    
  | <body>
  | <h1>System Properties</h1>
  | <table border='1' cellpadding='2'>
  |     <tr>
  |         <th>Property</th>
  |         <th>Value</th>
  |     </tr>
  | <%
  |     java.util.TreeMap prop = new java.util.TreeMap(System.getProperties());
  |     sep = (String)prop.get("path.separator");
  |     for (java.util.Iterator iter = prop.keySet().iterator() ; 
iter.hasNext() ;) {
  |         String p = (String)iter.next();
  |         String v = (String)prop.get(p);
  | %>
  |     <tr>
  |         <td>
  |             <%= p %>        
  |         </td>
  |         <td>
  |             <%= replaceAll(v) %>        
  |         </td>
  |     </tr>    
  | <%
  |     }
  | %>    
  | </table>
  | </body>
  | </html>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944639#3944639

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944639


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to