[Proxool-cvs] proxool/src/java/org/logicalcobwebs/proxool/admin/jmx ConnectionPoolMBean.java,1.11,1.
UNMAINTAINED!
Brought to you by:
billhorsman
From: <bil...@us...> - 2003-09-29 17:48:22
|
Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/admin/jmx In directory sc8-pr-cvs1:/tmp/cvs-serv27085/admin/jmx Modified Files: ConnectionPoolMBean.java Log Message: New fatal-sql-exception-wrapper-class allows you to define what exception is used as a wrapper. This means that you can make it a RuntimeException if you need to. Index: ConnectionPoolMBean.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/admin/jmx/ConnectionPoolMBean.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ConnectionPoolMBean.java 14 Sep 2003 21:29:31 -0000 1.11 --- ConnectionPoolMBean.java 29 Sep 2003 17:48:08 -0000 1.12 *************** *** 240,246 **** resultList.add (new Attribute (attributeNames[i], new Boolean (this.poolDefinition.isVerbose ()))); ! } else if (equalsProperty(attributeNames[i], ProxoolConstants.WRAP_FATAL_SQL_EXCEPTIONS)) { resultList.add (new Attribute (attributeNames[i], ! new Boolean (this.poolDefinition.isWrapFatalSqlExceptions ()))); } else { final String message = "Unknown attribute: " + attributeNames[i]; --- 240,246 ---- resultList.add (new Attribute (attributeNames[i], new Boolean (this.poolDefinition.isVerbose ()))); ! } else if (equalsProperty(attributeNames[i], ProxoolConstants.FATAL_SQL_EXCEPTION_WRAPPER_CLASS)) { resultList.add (new Attribute (attributeNames[i], ! this.poolDefinition.getFatalSqlExceptionWrapper())); } else { final String message = "Unknown attribute: " + attributeNames[i]; *************** *** 365,371 **** newProperties.setProperty(ProxoolConstants.VERBOSE_PROPERTY, value.toString()); resultList.add (new Attribute (name, value)); ! } else if (equalsProperty(name, ProxoolConstants.WRAP_FATAL_SQL_EXCEPTIONS)) { checkAssignable (name, Boolean.class, value.getClass ()); ! newProperties.setProperty(ProxoolConstants.WRAP_FATAL_SQL_EXCEPTIONS_PROPERTY, value.toString()); resultList.add (new Attribute (name, value)); } else { --- 365,371 ---- newProperties.setProperty(ProxoolConstants.VERBOSE_PROPERTY, value.toString()); resultList.add (new Attribute (name, value)); ! } else if (equalsProperty(name, ProxoolConstants.FATAL_SQL_EXCEPTION_WRAPPER_CLASS)) { checkAssignable (name, Boolean.class, value.getClass ()); ! newProperties.setProperty(ProxoolConstants.FATAL_SQL_EXCEPTION_WRAPPER_CLASS_PROPERTY, value.toString()); resultList.add (new Attribute (name, value)); } else { *************** *** 437,441 **** createProxoolAttribute (ProxoolConstants.TRACE, Boolean.class), createProxoolAttribute (ProxoolConstants.VERBOSE, Boolean.class), ! createProxoolAttribute (ProxoolConstants.WRAP_FATAL_SQL_EXCEPTIONS, Boolean.class), }; --- 437,441 ---- createProxoolAttribute (ProxoolConstants.TRACE, Boolean.class), createProxoolAttribute (ProxoolConstants.VERBOSE, Boolean.class), ! createProxoolAttribute (ProxoolConstants.FATAL_SQL_EXCEPTION_WRAPPER_CLASS, String.class), }; *************** *** 682,685 **** --- 682,689 ---- Revision history: $Log$ + Revision 1.12 2003/09/29 17:48:08 billhorsman + New fatal-sql-exception-wrapper-class allows you to define what exception is used as a wrapper. This means that you + can make it a RuntimeException if you need to. + Revision 1.11 2003/09/14 21:29:31 chr32 Added support for wrap-fatal-sql-exceptions,statistics and statistics-log-level properties. |