David Nolen wrote:
I using the Batik classes from a Java Servlet. In the Servlet I'm
creating a new JSVGComponent and then calling the loadSVGDocument()
method. However according to the Batik API, the only way to know if
the document has finished loading is to set up an event listener,
which I've done.
However the listener fires after the Servlet has exited. How can I
make the Servlet wait for loadSVGDocument() to truly finish?
There are a large number of ways the simplest is probably to
have the main Servlet thread call 'wait()' and have your callback
'notify' the main servlet thread when it is called.
BTW it is fairly unusual to be using the JSVGComponent in a
Servlet. Can I ask what you are doing? You may find that the
Transcoders are more appropriate or that you would find it easier
to call some of the internal classes directly rather than work
around the asynchronous nature of the JSVGCanavs (async is good
for UI, bad for Servlet).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]