gdamour     2005/03/25 06:15:28

  Modified:    modules/openejb-builder/src/java/org/openejb/deployment
                        CMPEntityBuilder.java
  Log:

  Do not need to process QueryException specifically as they can now be
  nested within DeploymentException without problem.
  
  Revision  Changes    Path
  1.26      +2 -17     
openejb/modules/openejb-builder/src/java/org/openejb/deployment/CMPEntityBuilder.java
  
  Index: CMPEntityBuilder.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/java/org/openejb/deployment/CMPEntityBuilder.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- CMPEntityBuilder.java     15 Mar 2005 05:32:41 -0000      1.25
  +++ CMPEntityBuilder.java     25 Mar 2005 11:15:27 -0000      1.26
  @@ -740,22 +740,7 @@
           builder.setTransactionManagerDelegate(tmDelegate);
   
           try {
  -            GBeanData gbean;
  -            try {
  -                gbean = builder.createConfiguration();
  -            } catch (QueryException e) {
  -                log.error("Deployment exception.", e);
  -                Throwable exception = e;
  -                StringBuffer message = new StringBuffer();
  -                while (null != exception) {
  -                    message.append('\t');
  -                    message.append(exception.getMessage());
  -                    message.append('\n');
  -                    exception = exception.getCause();
  -                }
  -                throw new DeploymentException("A stack-trace has been 
provided on the server-side.\n" +
  -                        "Message\n" + message.toString());
  -            }
  +            GBeanData gbean = builder.createConfiguration();
               gbean.setName(containerObjectName);
               gbean.setReferencePattern("TransactionContextManager", 
earContext.getTransactionContextManagerObjectName());
               gbean.setReferencePattern("TrackedConnectionAssociator", 
earContext.getConnectionTrackerObjectName());
  
  
  

Reply via email to