Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.help Subject: Re: Can a ResultSet be passed back to a main program Date: Mon, 10 Oct 2011 10:10:50 -0700 (PDT) Organization: http://groups.google.com Lines: 14 Message-ID: <27859861.989.1318266650875.JavaMail.geo-discussion-forums@prmr13> References: <4e92594f$0$14660$9a566e8b@news.aliant.net> <4e932629$0$13642$9a566e8b@news.aliant.net> Reply-To: comp.lang.java.help@googlegroups.com NNTP-Posting-Host: 2620:0:1000:fd42:224:d7ff:fe69:5838 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1318267455 13550 127.0.0.1 (10 Oct 2011 17:24:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 Oct 2011 17:24:15 +0000 (UTC) In-Reply-To: <4e932629$0$13642$9a566e8b@news.aliant.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:fd42:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1221 Linus Flustillbe wrote: > import java.sql.*; > > import mainClasses.*; > public class connectionTest { > public static void main(String[] args) > throws ClassNotFoundException, SQLException > { > Class.forName("oracle.jdbc.driver.OracleDriver"); Don't call 'forName()' more than once per application run. Once the class is loaded, it's loaded. Reloading it doesn't help and the method call spins cycles to no avail. -- Lew