When you use the JDBC driver, the library list used depends on the naming
format property
On your JDBC URL, if you use naming=sql, I think you just get the system
default library list
If you use naming=system, the library list is taken from the user profiles
job description.

If you want to set up a specific library list, you will need to append the
libraries to your URL

Here I have a library list for a test environment that has the test
libraries at the top of the library list


-----Original Message-----
From: Ashish Kulkarni [mailto:kulkarni_ash1312@xxxxxxxxx] 
Sent: 10 November 2003 01:47
To: java400-l@xxxxxxxxxxxx
Subject: some questions about java, RPG, Native driver for JDBC connection

Here are some questions about calling Java from RPG
1) Is it possible that the JDBC Connection have the
same library list of that the program calling and not
the library list set in the user profile ( job
My problem is that there is no library list set on
user profile, and i want the Connection created using
the native driver in Java have the same library list
as that of the RPG program calling it?
2)If i have SETON LR in my RPG code do i still have to
tell java that u have finished using the objects
created in RPG program and destroy them?

3) If i have a method which has resultset as input
parameter, can i pass sql cursor from RPG while
calling this method? if so how
here is my java code
public String myMethod(ResultSet rs)
return someThing;
This is my method declaration
d crtpdf          pr              o    extproc(*java: 
d                                      :'generatePDF')
d input1                          o  
d                                     const           

but how do i pass cursor to this method??


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

For the latest on Bertram Books products and services and for up-to-the-minute 
book news visit

This e-mail and any attachments may contain information that is confidential 
and privileged and is solely for the use of the intended recipient. If you are 
not the intended recipient please notify the sender and delete this e-mail and 
any attachments immediately

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-2022 by 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.