User: kimptoc 
  Date: 01/09/01 12:50:31

  Modified:    src/main/org/jboss/ejb/plugins/jaws/bmp
                        CustomFindByEntitiesCommand.java
  Log:
  remove deprecated logging import, where possible, otherwise comment as needing 
replacement with log4j.... must find out how it is use.... would be good if the 
deprecation message pointed to an example to use...
  
  Revision  Changes    Path
  1.7       +11 -8     
jboss/src/main/org/jboss/ejb/plugins/jaws/bmp/CustomFindByEntitiesCommand.java
  
  Index: CustomFindByEntitiesCommand.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/bmp/CustomFindByEntitiesCommand.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CustomFindByEntitiesCommand.java  2001/08/03 17:15:48     1.6
  +++ CustomFindByEntitiesCommand.java  2001/09/01 19:50:31     1.7
  @@ -16,7 +16,10 @@
   import javax.ejb.FinderException;
   
   import org.jboss.ejb.EntityEnterpriseContext;
  +
  +// TODO this needs to be replaced with the log4j logging
   import org.jboss.logging.Logger;
  +
   import org.jboss.ejb.plugins.jaws.JPMFindEntitiesCommand;
   import org.jboss.metadata.BeanMetaData;
   import org.jboss.util.FinderResults;
  @@ -30,7 +33,7 @@
    *
    * @see org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand
    * @author <a href="mailto:[EMAIL PROTECTED]";>Michel de Groot</a>
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    */
   public class CustomFindByEntitiesCommand
      implements JPMFindEntitiesCommand
  @@ -87,12 +90,12 @@
            throw new FinderException("Illegal arguments for finder 
implementation:"+finderImplMethod.getName());
         } catch (ExceptionInInitializerError e5) {
            throw new FinderException("Unable to initialize finder 
implementation:"+finderImplMethod.getName());
  -             } catch (InvocationTargetException e) {
  -                     Throwable target  = e.getTargetException();
  -                     if(target instanceof Exception) {
  -                             throw (Exception)target;
  -                     }
  -                     throw new FinderException("Unable to initialize finder 
implementation: " + finderImplMethod.getName());
  -             }
  +        } catch (InvocationTargetException e) {
  +            Throwable target  = e.getTargetException();
  +            if(target instanceof Exception) {
  +                throw (Exception)target;
  +            }
  +            throw new FinderException("Unable to initialize finder implementation: 
" + finderImplMethod.getName());
  +        }
      }
   }
  
  
  

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

Reply via email to