HTTP Post & Msg Type!

2009-11-27 Thread Uday Subbarayan
Guys,   I used HTTP Post to send a message(string) to the queue. The message(string) received correctly in the queue. I checked using the admin page. Then, I wrote a consumer(jms) to receive it. I am getting "null" string. Here is the code:    if (msg instanceof TextMessage) {   

Re: NPE- Consumer Example

2009-11-27 Thread Uday Subbarayan
Best, Uday. - I do not blog but e-write: http://uds-web.blogspot.com --- On Fri, 11/27/09, Bruce Snyder wrote: From: Bruce Snyder Subject: Re: NPE- Consumer Example To: users@activemq.apache.org Date: Friday, November 27, 2009, 4:34 PM On Thu, Nov 26, 2009 at 12:3

NPE- Consumer Example

2009-11-26 Thread Uday Subbarayan
The default sample app in 5.3 is throwing a Null Pointer Exception for consuming the message. I see that message count is decreasing by 1, when i run the consumer sample app for 1st time. But it doesn't consume any more message and throws this NPE. Its on Mac. Any idea? Thanks, Uday. uday-subb

Re: HTTP- Authentication

2009-11-26 Thread Uday Subbarayan
gile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Thu, Nov 26, 2009 at 10:45 AM, Uday Subbarayan wrote: > Hi All, >     I am able to HTTP POST to

HTTP- Authentication

2009-11-26 Thread Uday Subbarayan
Hi All,     I am able to HTTP POST to my queue w/o any authentication and is scary :-) http://localhost:8161/demo/message/myqueue?type=queue Is there an out-of-box auth mechanism available  for HTTP traffic? OR Do i have to write one as explained in the doc? Thanks, Uday.

Re: URI for Queue

2009-11-26 Thread Uday Subbarayan
/ Blog - http://www.nighttale.net On Wed, Nov 25, 2009 at 5:01 PM, Uday Subbarayan wrote: > Hi Dejan, >     This is also NOT working.(getting 404 resource not found) I am NOT > using a servlet as a client. It's a POJO as a client to MQ. > > I am still trying to find the URI for t

Re: Active Consumers on TCP x HTTP

2009-11-25 Thread Uday Subbarayan
I am also in a similar situation...I need a HTTP producer but can't get it work yet! Uday. - I do not blog but e-write: http://uds-web.blogspot.com --- On Wed, 11/25/09, jfaerman wrote: From: jfaerman Subject: Active Consumers on TCP x HTTP To: users@activemq.apache

Re: URI for Queue

2009-11-25 Thread Uday Subbarayan
Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Tue, Nov 24, 2009 at 4:09 PM, Uday Subbarayan wrote: > Thanks for the pointers. I checked them. I got th

Re: URI for Queue

2009-11-24 Thread Uday Subbarayan
ce using JMS API. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Tue, Nov 24, 2009 at 5:56 AM, Uday Subbarayan wrote: > Hi, >    I have installed Acti

URI for Queue

2009-11-23 Thread Uday Subbarayan
Hi,    I have installed ActiveMQ 5.3 and created a test queue called 'mytest'. I want to HTTP POST to this queue from my java application(J2SE) directly using java.net.httpurlconnection. My questions are, [1] What is the URL for this queue? [2] What is the credentials(if any) to POST to this que