× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thank you...

> -----Original Message-----
> From: Richard Casey [SMTP:casey_r@popmail.firn.edu]
> Sent: Thursday, February 13, 2003 11:08 AM
> To:   'Java Programming on and around the iSeries / AS400'
> Subject:      RE: please critique
> 
> Tim,
> 
> Both options work, but the first option is probably better. You could
> enhance that option by passing the driver name, URL, userid, and password
> as
> parameters to the program or storing them in a Properties file which your
> program could load. That way a change to any of those 4 items would not
> require changing and recompiling the program.
> 
> Hope this helps. Good luck!
> Richard
> 
> -----Original Message-----
> From: java400-l-bounces@midrange.com
> [mailto:java400-l-bounces@midrange.com]On Behalf Of Hatzenbeler, Tim
> Sent: Thursday, February 13, 2003 1:24 PM
> To: 'Java Programming on and around the iSeries / AS400'
> Subject: RE: please critique
> 
> 
> Thank you for the link...  And after a few paragraphs, I saw something,
> that
> is unclear to me..
> 
> Is it better to do 1
> 1)String sDriver = "COM.cloudscape.core.RmiJdbcDriver";
>     String sURL = "jdbc:cloudscape:rmi:jGuru;create=true";
>     String sUsername = "sa";
>     String sPassword = "admin";
> 
>     try   // Attempt to load the JDBC driver
>     {     // with newInstance
>         Class.forName( sDriver ).newInstance();
>     }
> 
> 
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.