xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Massimo Signori" <sign...@webscience.it>
Subject R: batik opens too TCP connections?
Date Tue, 26 Oct 2004 14:06:58 GMT
Thank you Thomas, i guess you're right. Let me know if I'm right now :)
This is what my applet does:

1. downloads a zip file from server in which there are the SVG and the JS
files

2. saves and unzip this zip file in a local directory

3. loads the SVG in browser

4. at this point I can make some svg browsing using some js functions

5. these js functions use rhino to call some java classes

You are telling me that calling java classes on server causes this opening
of so many TCP connections, aren't you?
It seems that Tomcat doesn't log this passage... you know if there is a
possible solution? 

Thank you very much for your help,
Kind regards
Massimo

-----Messaggio originale-----
Da: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
Inviato: martedì 26 ottobre 2004 15.43
A: Batik Users
Oggetto: Re: batik opens too TCP connections?

Massimo Signori wrote:

> Hi everybody, i'm using batik to display an SVG in my java applet. This
SVG
> contains some links to javascript functions as shown:

[...]

> My applet downloads this file from server and then opens this file from
the
> hard drive.
> It seems that when SVG rendering is complete and I start browsing this svg
> using some JS functions, my applet opens an incredible number of TCP
> connections just when a JS function is called (I think...). I've seen that
> by monitoring with TCPView the number of connections opened.

   Can you tell what it's opening (I assume it's requesting classes
from the originating server).  I would suspect that this is caused by
Rhino, it allows you to access Java classes from JavaScript, however
usually this only happens when you want it to.  You might be able
to find something 'odd' in your JS by looking at the server logs to
know what it is requesting (if it's requesting a class in something
like a mouseover handler it could open lots of connections in a short
period).

> Please note I'm quite new with batik and don't know if this problem is in
> some way related to it. 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message