Hi all!
I use
jboss-4.0.5.GA, EJB3.0 XP_SP2I use
Log4jSocketServer and SocketAppenderto log some request from clients to server. (Example both of server and client is the same machine, and host name: pc6 and has IP is: 192.168.1.228).
... <mbean code="org.jboss.logging.Log4jSocketServer" name="jboss.system:type=Log4jService,service=SocketServer"> <attribute name="Port">8888</attribute> <attribute name="BindAddress">${jboss.bind.address}</attribute> </mbean>
... <appender name="MY_SOCKET" class="org.apache.log4j.net.SocketAppender"> <param name="Port" value="8888"/> <param name="RemoteHost" value="pc6"/> --> or "192.168.1.228" <param name="ReconnectionDelay" value="30000"/> <param name="Threshold" value="INFO"/> </appender>
log4j:ERROR Could not connect to remote log4j server at [pc6]. We will try again later. java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) ...