View previous topic :: View next topic
|
Author |
Message |
siva_marthala
New User
Joined: 22 Aug 2007 Posts: 7 Location: Pune
|
|
|
|
At outset, i want to test to use temp tables for interchange of data between java and mainframe. so, proceeding as follows.
Java declares a temp-table
Java calls the stored procedure
stored proc inserts the data to temp-table
Java reads the data from temp-table.
tried and is not working ?
( When java reads the temp table there is only the row that was inserted from java and the values inserted by Stored Proc are missing )
Can experts throw some light on this ?
Thanks
Siva... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
assuming that the SP is not getting any errors inserting rows to the temp table,
are you sure that the temp table that the SP addresses and the temp table that the JAVA thread is creating/reading are the same?
most of what I read about java and SP's is that the SP declares and opens a cursor and JAVA fetches the cursor - which implies some communication between JAVA via websphere/whatever and DB2.
I am nowhere an experience individual with this theme but If your java could create a table on the mainframe, why call an SP to populate it? The Java, could communicate directly with DB2 on the mainframe.
i realize I have asked more questions than you have, but there seems to be something missing in your communications with the mainframe.
Hopefully, someone who knows something about this can provide an answer for both of us. |
|
Back to top |
|
|
siva_marthala
New User
Joined: 22 Aug 2007 Posts: 7 Location: Pune
|
|
|
|
Hi Dick,
Thanks for the prompt reply.
In my Stored Procedures, i have OPEN the cursor as output of the program and this Stored Proc is using to feed as input to a "screen" program ( java front end)
I am looking into the points you raised and will get in touch after Analysis.
Thanks
Siva... |
|
Back to top |
|
|
siva_marthala
New User
Joined: 22 Aug 2007 Posts: 7 Location: Pune
|
|
|
|
dbzTHEdinosauer wrote: |
most of what I read about java and SP's is that the SP declares and opens a cursor and JAVA fetches the cursor - which implies some communication between JAVA via websphere/whatever and DB2.
|
Hello Dick,
Can you provide me useful link (java and stored procedures)
I am looking an alternate / back up plan as below
Java calls the stored procedure
stored proc declares a temp-table
stored proc inserts the data to temp-table
Java reads the data from temp-table.
Thanks
Siva... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
|