This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the better option to get connected to NNTP server from Servlets?

 
Raju
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing a web based news reader (NNTP) using Servlets/JSP. Currently I'm using sockets to connect to news server to issue NNTP commands and read back the content.
I tried to fetch an article (size 3MB with attachment), but it took too long (around 30 minutes) and page cannot be read error was displayed. Fetching the same articles through telnet also took 40 minutes. I tried using Microsoft Outlook and was able to read the same article in 6 minutes.
Can anyone suggest me a better option to connect to news server from servlets...
Thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Welcome to JavaRanch!
You'll have to tell us a bit more about what you're doing, I think, including the network speed from the servlet container to the NNTP server, and give us some idea of the code you're using to read the messages, before we can offer any advice. Hard to suggests improvements if we don't know what you're doing already!
I suspect that you're using unbuffered streams for reading and/or writing the data; if so you stand to be able to improve things greatly using buffering.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic