Here is a patch that adds "throws Exception" to main and
setupDataSource. The constructor for PoolableConnectionFactory throws an
exception which is not being caught and causes a compiler error.


Steven Caswell
[EMAIL PROTECTED]


--- ManualPoolingDataSourceExample.java.orig    Sun Apr 21 02:07:52 2002
+++ ManualPoolingDataSourceExample.java Sun Apr 21 15:58:41 2002
@@ -124,7 +124,7 @@
 //
 public class ManualPoolingDataSourceExample {
 
-    public static void main(String[] args) {
+    public static void main(String[] args) throws Exception {
         //
         // First, we set up the PoolingDataSource.
         // Normally this would be handled auto-magically by
@@ -167,7 +167,7 @@
         }
     }
 
-    public static DataSource setupDataSource(String connectURI) {
+    public static DataSource setupDataSource(String connectURI) throws Exception {
         //
         // First, we'll need a ObjectPool that serves as the
         // actual pool of connections.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to