Article View: borland.public.jbuilder.java.api
Article #199Re: Socket Info
From: Paul Nichols (TeamB)
Date: Wed, 27 Oct 2004 21:36
Date: Wed, 27 Oct 2004 21:36
22 lines
1789 bytes
1789 bytes
"lredmond" <lredmond@nyc.rr.com> wrote in message news:417edcd3$1@newsgroups.borland.com... > I have a clinet which keeps a dedicted connection to a server and send > messages. my problem is that a message has to wait for a response that can > take several seconds to return. I have a timeout set say for 10 seconds if > I dont get a response then fail my message and send the next one in he > queue. Sometimes this occurs and the programs sends a messages while the > response comes back ( which took a little more than 10 seconds which causes > a deadlock....can this process be multithreaded... I know I can increase the > wait period but now that slows down my process alot since I'm dealing with > thousands of messages. I need to send multiple messages and not worry about > deadlocks. > Well, you could write a socket pool, but it sounds as though your app would be a good candidate for something like JMS.
Technical Details
Message-ID:
<418014c5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<417edcd3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,9b698b9dbdbcfb32 X-Google-Attributes: gid1089d0,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul Nichols \(TeamB\)" <paul@computer-logic.net> Newsgroups: borland.public.jbuilder.java.api References: <417edcd3$1@newsgroups.borland.com> Subject: Re: Socket Info Date: Wed, 27 Oct 2004 16:36:05 -0500 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 66.20.208.2 Message-ID: <418014c5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098912965 66.20.208.2 (27 Oct 2004 14:36:05 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail