in reply to Grabbing data from a java applet
The applet may or may not be able to make such a connection, depending on the security options that the browser's user has chosen.
If you just need information about stock quotes, I suggest you check out the Finance::Quote module, which you can use to fetch quotes from a variety of different sites. I suspect that this method may be your best option. (I haven't used it myself, but it appears to be a well-developed module.) If you use it successfully, you may want to submit a review of it to our Module Reviews section.