[Clev-jug] RE: Clev-jug Digest, Vol 29, Issue 6
Shankar Mandal
shankar.mandal at gmail.com
Thu Jun 22 14:25:51 CDT 2006
The sender program was not opening a connection before sending it.
The sender code was initially like this:
queue = (Queue) ctx.lookup(QUEUE);
QueueRequestor requestor = new QueueRequestor(qsession,queue);
msg = qsession.createTextMessage();
msg.setText("4");
System.out.println("Before Requesting...");
TextMessage response = (TextMessage)requestor.request(msg);
System.out.println ("After Response...");
System.out.println(response.getText());
I changed it to
queue = (Queue) ctx.lookup(QUEUE);
qcon.start();
QueueRequestor requestor = new QueueRequestor(qsession,queue);
msg = qsession.createTextMessage();
msg.setText ("4");
System.out.println("Before Requesting...");
TextMessage response = (TextMessage)requestor.request(msg);
System.out.println ("After Response...");
System.out.println(response.getText());
But its surprising that without opening the connection before, though the
response was not received, but the message was received by the other
program.
Let me know if you have a reason for that.
Thanks,
Shankar Mandal
On 6/22/06, John Bernatovicz <bernatovicz at bhsolutionsgroup.com> wrote:
>
> Why did the text on this message not come through?
>
> John Bernatovicz
> BH Solutions Group, Inc.
> World Class Provider of Contract Consulting & Recruiting Services in IT,
> Finance, and Sales
>
> 4040 Embassy Parkway, Suite 200
> Akron, OH 44333
> 330-666-6970 x17 (phone)
> 330-666-7380 (fax)
> bernatovicz at bhsolutionsgroup.com
>
>
>
> -----Original Message-----
> From: clev-jug-bounces at lists.urbancode.com
> [mailto:clev-jug-bounces at lists.urbancode.com] On Behalf Of
> clev-jug-request at lists.urbancode.com
> Sent: Thursday, June 22, 2006 1:00 PM
> To: clev-jug at lists.urbancode.com
> Subject: Clev-jug Digest, Vol 29, Issue 6
>
> Send Clev-jug mailing list submissions to
> clev-jug at lists.urbancode.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.urbancode.com/mailman/listinfo/clev-jug
> or, via email, send a message with subject or body 'help' to
> clev-jug-request at lists.urbancode.com
>
> You can reach the person managing the list at
> clev-jug-owner at lists.urbancode.com
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Clev-jug digest..."
>
>
> Today's Topics:
>
> 1. Java opportunities (John Bernatovicz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 21 Jun 2006 13:57:52 -0400
> From: "John Bernatovicz" <bernatovicz at bhsolutionsgroup.com>
> Subject: [Clev-jug] Java opportunities
> To: <clev-jug at lists.urbancode.com>
> Message-ID:
> <87BB24AFCF62944FBADAA68BD2705B160492A428 at ex1.winsearch.asp>
> Content-Type: text/plain; charset="us-ascii"
>
> Skipped content of type multipart/alternative-------------- next part
> -------------- A non-text attachment was scrubbed...
> Name: not available
> Type: image/jpeg
> Size: 5675 bytes
> Desc: Clear Day Bkgrd.JPG
> Url :
> http://lists.urbancode.com/pipermail/clev-jug/attachments/20060621/89c4d
> 96b/attachment-0001.jpg
>
> ------------------------------
>
> _______________________________________________
> Clev-jug mailing list
> Clev-jug at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/clev-jug
>
>
> End of Clev-jug Digest, Vol 29, Issue 6
> ***************************************
> _______________________________________________
> Clev-jug mailing list
> Clev-jug at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/clev-jug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/clev-jug/attachments/20060622/5a6e8c98/attachment.htm
More information about the Clev-jug
mailing list