× 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.



Hi,
Here are some questions about calling Java from RPG
program.
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
description).
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                                    
'com.pfizer.maps.data.CreatePdfForPO'
d                                      :'generatePDF')
                    
d                                    
class(*java:'java.lang.String')      
d input1                          o  
class(*java:'java.sql.ResultSet')    
d                                     const           
                    

but how do i pass cursor to this method??

Ashish

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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.