Hi,
I am having trouple with applet cacheing. I have a database applet that
is using servlet to communicate to sqlServer. I thought that only
communication between applet and the server would be my queries to the
server and servers answers as serialized objects. That data transfer
would be max of 30 KB. Now the applet transfers the 30 KB of data and
also 200 KB of classes from the server!?! Why?
Here are some rows from the sun jvm log:
========================================
network: Connecting http://www.xxx.xxx/javadatepicker.jar with proxy=DIRECT
basic: Loading http://www.xxx.xxx/javadatepicker.jar from cache
basic: No certificate info, this is unsigned JAR file.
and later..
network: Connecting
http://www.xxx.xxx/com/standbysoft/component/date/swing/monthview.class
with proxy=DIRECT
network: Connecting http://www.xxx.xxx/javadatepicker.jar with proxy=DIRECT
network: Connecting
http://www.xxx.xxx/com/standbysoft/component/date/swing/monthview_fi.class
with proxy=DIRECT
network: Connecting
http://www.xxx.xxx/com/standbysoft/component/date/swing/monthview_fi.properties
with proxy=DIRECT
network: Connecting
http://www.xxx.xxx/com/standbysoft/component/date/swing/monthview_fi_FI.class
with proxy=DIRECT
network: Connecting
http://www.xxx.xxx/com/standbysoft/component/date/swing/monthview_fi_FI.properties
with proxy=DIRECT
...
And here is my applet-tag:
<applet archive =
jApplet.jar,javadatepicker.jar,dx.jar,jbcl.jar,dbswing.jar,beandt.jar,javadatepicker-beans.jar"
codebase = "."
code = "jApplet.jApplet.class"
name = "jApplet"
width = "800"
height = "600"
hspace = "0"
vspace = "0"
align = "middle">
<param name="cache_option" value="plugin">
<param name="cache_archive"
value="jApplet.jar,javadatepicker.jar,dx.jar,jbcl.jar,dbswing.jar,beandt.jar,javadatepicker-beans.jar">
</applet>
Thanks,
Mika
Roedy Green - 19 Jan 2006 11:55 GMT
On Thu, 19 Jan 2006 11:49:32 GMT, Mika Myllyvirta
<mika.REMOVEmyllyvirtaTHE@CAPITALSjamix.fi> wrote, quoted or
indirectly quoted someone who said :
>That data transfer
>would be max of 30 KB. Now the applet transfers the 30 KB of data and
>also 200 KB of classes from the server!?! Why?
Applets are not necessarily supposed to cache at all. If you want
caching, use Java Web Start.
See http://mindprod.com/jgloss/javawebstart.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Mika Myllyvirta - 19 Jan 2006 12:21 GMT
Hi Roedy,
I will look into that.
Thanks.
/mika
> On Thu, 19 Jan 2006 11:49:32 GMT, Mika Myllyvirta
> <mika.REMOVEmyllyvirtaTHE@CAPITALSjamix.fi> wrote, quoted or
[quoted text clipped - 8 lines]
>
> See http://mindprod.com/jgloss/javawebstart.html