Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Cache an Applet

Thread view: 
Mika Myllyvirta - 19 Jan 2006 11:49 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.