User: chirino
Date: 01/07/15 19:51:47
Modified: src/main/org/jbossmq/referenceable ObjectRefAddr.java
SpyConnectionFactoryObjectFactory.java
SpyDestinationObjectFactory.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.4 +0 -0 jbossmq/src/main/org/jbossmq/referenceable/ObjectRefAddr.java
Index: ObjectRefAddr.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/referenceable/ObjectRefAddr.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ObjectRefAddr.java 2001/07/11 02:53:50 1.3
+++ ObjectRefAddr.java 2001/07/16 02:51:47 1.4
@@ -22,7 +22,7 @@
* @author Scott M Stark ([EMAIL PROTECTED])
* @author Hiram Chirino ([EMAIL PROTECTED])
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class ObjectRefAddr extends RefAddr {
1.4 +4 -2
jbossmq/src/main/org/jbossmq/referenceable/SpyConnectionFactoryObjectFactory.java
Index: SpyConnectionFactoryObjectFactory.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/referenceable/SpyConnectionFactoryObjectFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SpyConnectionFactoryObjectFactory.java 2001/07/11 02:53:50 1.3
+++ SpyConnectionFactoryObjectFactory.java 2001/07/16 02:51:47 1.4
@@ -12,8 +12,8 @@
-import org.jbossmq.Log;
+
import org.jbossmq.GenericConnectionFactory;
/**
@@ -26,7 +26,7 @@
*
* @author Hiram Chirino ([EMAIL PROTECTED])
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class SpyConnectionFactoryObjectFactory implements
javax.naming.spi.ObjectFactory {
@@ -37,7 +37,7 @@
public java.lang.Object getObjectInstance(java.lang.Object reference,
javax.naming.Name name, javax.naming.Context contex, java.util.Hashtable properties)
throws java.lang.Exception {
- Log.log("SpyConnectionFactoryObjectFactory->getObjectInstance()");
+ cat.debug("SpyConnectionFactoryObjectFactory->getObjectInstance()");
try {
javax.naming.Reference ref = (javax.naming.Reference)
reference;
@@ -58,4 +58,6 @@
}
return null;
}
+
+ static org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(SpyConnectionFactoryObjectFactory.class);
}
1.3 +5 -3
jbossmq/src/main/org/jbossmq/referenceable/SpyDestinationObjectFactory.java
Index: SpyDestinationObjectFactory.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/referenceable/SpyDestinationObjectFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SpyDestinationObjectFactory.java 2001/03/02 01:12:59 1.2
+++ SpyDestinationObjectFactory.java 2001/07/16 02:51:47 1.3
@@ -10,8 +10,8 @@
-import org.jbossmq.Log;
+
/**
* This class is used to create instances of of:
* SpyTopic
@@ -20,7 +20,7 @@
*
* @author Hiram Chirino ([EMAIL PROTECTED])
*
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class SpyDestinationObjectFactory implements javax.naming.spi.ObjectFactory {
/**
@@ -36,7 +36,7 @@
public java.lang.Object getObjectInstance(java.lang.Object reference,
javax.naming.Name name, javax.naming.Context contex, java.util.Hashtable properties)
throws java.lang.Exception {
- Log.log("SpyDestinationObjectFactory->getObjectInstance()");
+ cat.debug("SpyDestinationObjectFactory->getObjectInstance()");
try {
@@ -61,4 +61,6 @@
}
return null;
}
+
+ static org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(SpyDestinationObjectFactory.class);
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development