User: user57
Date: 02/02/16 03:27:01
Modified: src/main/org/jboss/test/jmsra/bean QueueRecBean.java
TopicAdapter.java TopicPublisherBean.java
Log:
o System.err, System.out & printStackTrace() 99.9% gone.
Revision Changes Path
1.2 +5 -5 jbosstest/src/main/org/jboss/test/jmsra/bean/QueueRecBean.java
Index: QueueRecBean.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmsra/bean/QueueRecBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- QueueRecBean.java 22 Sep 2001 14:05:21 -0000 1.1
+++ QueueRecBean.java 16 Feb 2002 11:27:01 -0000 1.2
@@ -33,7 +33,7 @@
* <p>Test sync receive for jms ra.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Antman</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class QueueRecBean implements SessionBean {
@@ -75,7 +75,7 @@
// Keep both around
} catch (Exception ex) {
// JMSException or NamingException could be thrown
- ex.printStackTrace();
+ log.debug("failed", ex);
throw new EJBException(ex.toString());
}
}
@@ -87,7 +87,7 @@
// Rememer to close the connection when bean is destroyed
queueConnection.close();
} catch (Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
}
@@ -126,7 +126,7 @@
} catch (JMSException ex) {
- ex.printStackTrace();
+ log.debug("failed", ex);
ctx.setRollbackOnly();
throw new EJBException(ex.toString());
} finally {
@@ -135,7 +135,7 @@
try {
queueSession.close();
} catch (Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
}
1.3 +4 -4 jbosstest/src/main/org/jboss/test/jmsra/bean/TopicAdapter.java
Index: TopicAdapter.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmsra/bean/TopicAdapter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TopicAdapter.java 16 Feb 2002 10:09:26 -0000 1.2
+++ TopicAdapter.java 16 Feb 2002 11:27:01 -0000 1.3
@@ -64,7 +64,7 @@
} catch (Exception ex) {
// JMSException or NamingException could be thrown
- ex.printStackTrace();
+ log.debug("failed", ex);
throw new EJBException(ex.toString());
}
}
@@ -74,7 +74,7 @@
try {
queueConnection.close();
} catch (Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
ctx=null;
@@ -94,7 +94,7 @@
} catch (JMSException ex) {
- ex.printStackTrace();
+ log.debug("failed", ex);
ctx.setRollbackOnly();
throw new EJBException(ex.toString());
} finally {
@@ -102,7 +102,7 @@
try {
queueSession.close();
} catch (Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
}
1.4 +6 -6
jbosstest/src/main/org/jboss/test/jmsra/bean/TopicPublisherBean.java
Index: TopicPublisherBean.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmsra/bean/TopicPublisherBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TopicPublisherBean.java 16 Feb 2002 10:53:31 -0000 1.3
+++ TopicPublisherBean.java 16 Feb 2002 11:27:01 -0000 1.4
@@ -39,7 +39,7 @@
} catch (Exception ex) {
// JMSException or NamingException could be thrown
- ex.printStackTrace();
+ log.debug("failed", ex);
throw new EJBException(ex.toString());
}
}
@@ -78,7 +78,7 @@
try {
h.remove(new Integer(messageNr));
}catch(Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
@@ -99,7 +99,7 @@
try {
h.remove(new Integer(messageNr));
}catch(Exception ex) {
- ex.printStackTrace();
+ log.debug("failed", ex);
}
}
}
@@ -109,7 +109,7 @@
try {
topicConnection.close();
} catch (Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
}
@@ -135,7 +135,7 @@
} catch (JMSException ex) {
- ex.printStackTrace();
+ log.debug("failed", ex);
ctx.setRollbackOnly();
throw new EJBException(ex.toString());
} finally {
@@ -143,7 +143,7 @@
try {
topicSession.close();
} catch (Exception e) {
- e.printStackTrace();
+ log.debug("failed", e);
}
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development