User: chirino
Date: 01/07/15 19:51:46
Modified: src/main/org/jbossmq/il/uil UILClientIL.java
UILClientILService.java UILServerIL.java
UILServerILService.java
UILServerILServiceMBean.java
Log:
Moved the rest of JBossMQ over to log4j logging.
- The jbossmq-client.jar now includes a log4j.properties which sets up the logging
subsystems on the client side. To chanage the logging levels, just place your
log4j.properties in the classpath betfore the jbossmq-client.jar
Revision Changes Path
1.2 +1 -1 jbossmq/src/main/org/jbossmq/il/uil/UILClientIL.java
Index: UILClientIL.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/uil/UILClientIL.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UILClientIL.java 2001/07/11 02:28:35 1.1
+++ UILClientIL.java 2001/07/16 02:51:46 1.2
@@ -28,7 +28,7 @@
* @author Norbert Lataille ([EMAIL PROTECTED])
* @author Hiram Chirino ([EMAIL PROTECTED])
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class UILClientIL implements ClientIL, java.io.Serializable {
@@ -59,7 +59,7 @@
cat.debug("Done");
}
- final static org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(UILClientIL.class);
+ static org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(UILClientIL.class);
private transient ObjectInputStream in;
static final int m_close = 2;
static final int m_deleteTemporaryDestination = 1;
1.2 +5 -5 jbossmq/src/main/org/jbossmq/il/uil/UILClientILService.java
Index: UILClientILService.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/uil/UILClientILService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UILClientILService.java 2001/07/11 02:28:35 1.1
+++ UILClientILService.java 2001/07/16 02:51:46 1.2
@@ -29,10 +29,9 @@
* @author Norbert Lataille ([EMAIL PROTECTED])
* @author Hiram Chirino ([EMAIL PROTECTED])
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class UILClientILService implements org.jbossmq.il.ClientILService, Runnable
{
-
//the client IL
UILClientIL clientIL;
@@ -71,6 +70,7 @@
worker.interrupt();
}
+ static org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(UILClientILService.class);
//A link on my connection
private Connection connection;
// Attributes ----------------------------------------------------
@@ -83,7 +83,7 @@
Thread worker;
public void run() {
- org.jbossmq.Log.log("UILClientILService.run()");
+ cat.debug("UILClientILService.run()");
Socket socket = null;
int code = 0;
@@ -92,7 +92,7 @@
ObjectInputStream in = null;
try {
- org.jbossmq.Log.log("getting streams");
+ cat.debug("getting streams");
UILServerIL serverIL = (UILServerIL)connection.getServerIL();
out = new ObjectOutputStream(new
BufferedOutputStream(serverIL.mSocket.getOutputStream(2)));
@@ -108,9 +108,9 @@
while (running) {
try {
- org.jbossmq.Log.log("Waiting for a request");
+ cat.debug("Waiting for a request");
code = in.readByte();
- org.jbossmq.Log.log("Got it");
+ cat.debug("Got it");
} catch (IOException e) {
if (running)
1.2 +0 -0 jbossmq/src/main/org/jbossmq/il/uil/UILServerIL.java
Index: UILServerIL.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/uil/UILServerIL.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UILServerIL.java 2001/07/11 02:28:35 1.1
+++ UILServerIL.java 2001/07/16 02:51:46 1.2
@@ -36,7 +36,7 @@
* @author Hiram Chirino ([EMAIL PROTECTED])
* @author Norbert Lataille ([EMAIL PROTECTED])
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class UILServerIL implements ServerIL, java.io.Serializable, Cloneable {
1.2 +8 -9 jbossmq/src/main/org/jbossmq/il/uil/UILServerILService.java
Index: UILServerILService.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/uil/UILServerILService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UILServerILService.java 2001/07/11 02:28:35 1.1
+++ UILServerILService.java 2001/07/16 02:51:46 1.2
@@ -45,7 +45,7 @@
* manage the JVM IL.
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class UILServerILService extends ServerILJMXService implements
UILServerILServiceMBean, Runnable {
@@ -77,7 +77,7 @@
serverSocket = new ServerSocket(serverBindPort);
serverSocket.setSoTimeout(SO_TIMEOUT);
- cat.info("JBossMQ UIL service available at :
"+InetAddress.getLocalHost().getHostAddress()+ ":"+ serverSocket.getLocalPort());
+ category.info("JBossMQ UIL service available at :
"+InetAddress.getLocalHost().getHostAddress()+ ":"+ serverSocket.getLocalPort());
worker = new Thread(server.threadGroup, this,"UIL Worker");
worker.start();
@@ -110,7 +110,6 @@
return rc;
}
- org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(UILServerILService.class);
static final int m_acknowledge = 1;
static final int m_addMessage = 2;
static final int m_browse = 3;
@@ -167,7 +166,7 @@
in = new ObjectInputStream(new
BufferedInputStream(mSocket.getInputStream(1)));
} catch (IOException e) {
- cat.warn("Could not initialize the UILServerIL Service.", e);
+ category.warn("Could not initialize the UILServerIL Service.",
e);
running = false;
return;
}
@@ -187,7 +186,7 @@
if( closed || !running )
break;
- cat.warn("Connection failure (1).", e);
+ category.warn("Connection failure (1).", e);
break;
}
@@ -198,11 +197,11 @@
switch (code)
{
case m_setSpyDistributedConnection:
- cat.debug("Setting up the UILClientIL
Connection");
+ category.debug("Setting up the UILClientIL
Connection");
connectionToken =
(ConnectionToken)in.readObject();
((UILClientIL)connectionToken.clientIL).mSocket = mSocket;
((UILClientIL)connectionToken.clientIL).createConnection();
- cat.debug("The UILClientIL Connection is set
up");
+ category.debug("The UILClientIL Connection is
set up");
break;
case m_acknowledge:
@@ -279,7 +278,7 @@
if( closed )
break;
- cat.warn("Connection failure (2).", e);
+ category.warn("Connection failure (2).", e);
break;
}
@@ -296,7 +295,7 @@
if( closed )
break;
- cat.warn("Connection failure (3).", e);
+ category.warn("Connection failure (3).", e);
break;
}
}
@@ -312,7 +311,7 @@
}
mSocket.close();
} catch ( IOException e ) {
- cat.warn("Connection failure during connection close.", e);
+ category.warn("Connection failure during connection close.",
e);
}
}
}
1.2 +0 -1 jbossmq/src/main/org/jbossmq/il/uil/UILServerILServiceMBean.java
Index: UILServerILServiceMBean.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/uil/UILServerILServiceMBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UILServerILServiceMBean.java 2001/07/11 02:28:35 1.1
+++ UILServerILServiceMBean.java 2001/07/16 02:51:46 1.2
@@ -14,5 +14,4 @@
*/
public interface UILServerILServiceMBean extends
org.jbossmq.il.ServerILJMXServiceMBean
{
- public static final String OBJECT_NAME = "JBossMQ:service=UILServerIL";
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development