User: user57  
  Date: 02/02/16 03:26:59

  Modified:    src/main/org/jboss/test/cts/ejb CtsBmpBean.java
  Log:
   o System.err, System.out & printStackTrace() 99.9% gone.
  
  Revision  Changes    Path
  1.7       +12 -12    jbosstest/src/main/org/jboss/test/cts/ejb/CtsBmpBean.java
  
  Index: CtsBmpBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/ejb/CtsBmpBean.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CtsBmpBean.java   15 Feb 2002 06:15:51 -0000      1.6
  +++ CtsBmpBean.java   16 Feb 2002 11:26:59 -0000      1.7
  @@ -33,7 +33,7 @@
    *  will create it.
    *
    *  @author $Author: user57 $
  - *  @version $Revision: 1.6 $
  + *  @version $Revision: 1.7 $
    */
   
   public class CtsBmpBean
  @@ -107,7 +107,7 @@
              con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
   
            throw new CreateException("Entity bean creation failure: " +
                                      e.getMessage());
  @@ -172,7 +172,7 @@
              con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
   
            throw new FinderException("Could not find: " + e.getMessage());
         }
  @@ -213,7 +213,7 @@
               con.close();
            }
         } catch (SQLException e) {
  -          e.printStackTrace();
  +          log.debug("failed", e);
   
             throw new FinderException("Could not find: " + e.getMessage());
         }
  @@ -256,7 +256,7 @@
               con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
   
            throw new FinderException("Could not find: " + e.getMessage());
         }
  @@ -300,7 +300,7 @@
             con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
   
            throw new EJBException(e);
         }
  @@ -341,7 +341,7 @@
               con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
   
            throw new EJBException(e);
         }
  @@ -376,7 +376,7 @@
               con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
   
            throw new EJBException(e);
         }
  @@ -408,7 +408,7 @@
            try {
               ms.close();
            } catch (JMSException e) {
  -            e.printStackTrace();
  +            log.debug("failed", e);
               // otherwise ignore
            }
            ms = null;
  @@ -433,7 +433,7 @@
   
            ds = (DataSource)context.lookup("java:comp/env/datasource");
         } catch (NamingException nex) {
  -         nex.printStackTrace();
  +         log.debug("failed", nex);
   
            throw new EJBException("Datasource not found: " + nex.getMessage());
         }
  @@ -533,7 +533,7 @@
               con.close();
            }
         } catch (SQLException e) {
  -         e.printStackTrace();
  +         log.debug("failed", e);
    
            throw new EJBException(e);
         }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to