What type of data are you going after?  Sounds like html if your using a
URL.

If so try this (great for syndicating in content from another site) :


URL url = new URL ("http","www.allaire.com","/index.cfm");


     HttpURLConnection c =  (HttpURLConnection) url.openConnection();


         InputStream in = c.getInputStream();

      byte buf[] = new byte[4096];
      int  cnt   = 0;
      while ((cnt = in.read(buf)) > 0)
         out.print(new String(buf, 0, 0, cnt));
        out.println("-");
      in.close();






-----Original Message-----
From: Diego Diego [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 3:40 PM
To: JRun-Talk
Subject: URL Connection Cache

Greeting,

I have a servlet that calls a cgi application on a seperate machine to
recieve data . I open a url connection and get the data and send it to the
applet. I know that DataBase Connection pooling is possible and built into
JRUN , Do they have something Build into JRUN that would create a pool of
connection to a URL that I can use. If not anyone know where I can read
about creating my own ?

Diego
Belize C.A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to