176 DB2 for OS/390 and z/OS Powering the Worlds e-business
Result sets to not be returned
Symptom
JNI panic condition in the Java stored procedure code, resulting in a -430
SQLCODE from CALL statement.
How to solve
This is caused by closing the connection or returned result sets.
Modify the application to not close.
Applets and servlets
For Web applications, applets and servlets are most common. Figure 7-15 shows
the architecture of Java applet and servlet. Java applets run within a Web
browser, whereas Java servlets run within a Web server environment.
Figure 7-15 Applet and servlet architecture
Java applets are small application programs that are downloaded to and
executed on a Web browser.
Applet
Web
Browser
Web
Server
(HTTP)
Input Request
Class
File
Interpret Applet tag
and locate "class" file
1
2
34
Class file sent v ia
browser to Web
Server
Ap ple t life c ycle
started within
browser JVM
environment
Applet
JVM
Servlet
Architecture
Web Server &
Applicatio n S e rv er
locate and Servlet
life cycle starte d
Servlet
performs
necessary
processing
and
generates
HTML
3
Web
Browser
Web
Server
(HTTP,
WAS)
Input Request
Servlet
Results to
be rendered
in browser
1
4
2

Get DB2 for OS/390 and z/OS Powering the World's e-business Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.