+ Reply to Thread
Results 1 to 2 of 2

Thread: java called from JNDI...getting resultset

  1. #1

    Default java called from JNDI...getting resultset

    Hello, I wanted to call a Stored Procedure which is calling an RPG program thats returning one result set from JAVA. I am trying to alter an application that is already written in java accessing iseries RPG (business logic ). Currently this program uses PCML to call RPG, which I want to replace it by calling Stored procedure. I have pasted the half written code below. Can anybody please help on how to do that. Basically i want to get the result set from RPG in Java Thanks Connection con = null; CallableStatement sqlCall; sqlCall = con.prepareCall("CALL RSRINIVA.TESTPROC(?,?)"); //sqlCall.set sqlCall.execute(); ResultSet rs = sqlCall.getResultSet(); while(rs.next())
    Code

  2. #2
    Guest.Visitor Guest

    Default java called from JNDI...getting resultset

    Rajansss, JNDI is the java api for name/object mapping reference stored in memory which has nothing to do with what you're trying to accomplish. Anyway, if you're trying to get the data from SP then see the code below. PCML also works great but unfortunately it has limitations as well. Good luck, Gio
    Code

+ Reply to Thread

Similar Threads

  1. This program is called by............
    By Guest.Visitor in forum RPG
    Replies: 3
    Last Post: 06-09-2004, 06:41 AM
  2. Who called 911
    By Guest.Visitor in forum General
    Replies: 1
    Last Post: 09-06-2002, 09:59 AM
  3. What pgm called this RPG pgm.
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 12-07-2000, 12:51 PM
  4. Stored procedure called from Java program
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM
  5. Returning resultset from SP
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts