Message.receive()

Steffen Silberbach <[email protected]> Fri, 06 Oct 2006 08:21:08 +0200
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hi,

when you call Message.receive, your application doesn't hang, it just waits for 
a new message on the queue. it's the same behaviour like in some other JMS 
implementations. you schould always seperate a receive() call in an extra thread 
or use receiveNoWait() or receive(time) if you want your application not to 
"hang" ..


openjms-user-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote:

> 
> Message: 1
> Date: Wed, 4 Oct 2006 17:33:11 -0700 (PDT)
> From: PaulS <[email protected]>
> Subject: [openjms-user] Message.receive()
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> Hi
> 
> i am having issues with Message.receive(), this method hangs if there are no
> messages in the queue. but if i use receiveNoWait(), then i am having issues
> with ack-ing the message....
> 
> any way to work around it?
> 
> -Paul
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user
steffen.silberbach.vcf (text/x-vcard, 367 B)
begin:vcard
fn:Steffen Silberbach
n:Silberbach;Steffen
org:SIV.AG;Entwicklung facilities
adr;quoted-printable:;;Konrad-Zuse-Stra=C3=9Fe 1;Roggentin;;18184;Deutschland
email;internet:[email protected]
title:Dipl. Informatiker
tel;work:+49 (0)3 81 / 25 24 - 0
tel;fax:+49 (0)3 81 / 25 24 - 299
url:http://www.siv.de
version:2.1
end:vcard