activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samd <sdoyl...@yahoo.com>
Subject Re: ActiveMQ TextMessage to GlassFish Queue
Date Fri, 06 Apr 2007 19:02:26 GMT

Hello and thanks.

Do you have a writeup on how to deploy within GlassFish, you mention it can
run within GlassFish but the link you provide to the writeup is some blog
that when I tried did not work. Here is the link that you provide.

http://weblogs.java.net/blog/rampsarathy/archive/2007/03/glassfish_v2_an.html



James.Strachan wrote:
> 
> On 4/6/07, samd <sdoyle_2@yahoo.com> wrote:
>>
>>
>>
>> James.Strachan wrote:
>> >
>> > On 4/6/07, samd <sdoyle_2@yahoo.com> wrote:
>> >>
>> >> Hi,
>> >> I have a standalone ActiveMQ client which I'm trying to get to send a
>> >> TextMessage to a GlassFish queue
>> >
>> > Unfortunately the ActiveMQ client only talks to ActiveMQ queues;
>> > there's no GlassFish queue support.
>> >
>> >
>> >> so that it can be consumed by a MDB. What
>> >> is the procedure required to do this? I tried using the standard
>> >> mechanism
>> >> of:
>> >>
>> >> String  serverUrl="tcp://<host>:<port>/";
>> >> ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(
>> >> serverUrl
>> >> );
>> >> QueueConnection queueConnection =
>> >> ((QueueConnectionFactory)factory).createQueueConnection();
>> >> QueueSession  senderSession =
>> >> queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
>> >> Queue requestQueue = senderSession.createQueue("testQueue");
>> >>
>> >>  QueueSender sender = senderSession.createSender(requestQueue);
>> >>  queueConnection.start();
>> >>
>> >> This doesn't appear to work.
>> >
>> > Could you give us a clue as to what actually happens?
>> >
>> > --
>> >
>> > James
>> > -------
>> > http://radio.weblogs.com/0112098/
>> >
>> >
>>
>> Hi,
>>
>> Thanks for your response, well I guess then that answers the question
>> that
>> it can only speak to ActiveMQ Queues. I was hoping that there would be
>> some
>> common standard format but I guess that isn't the case.
>> Could you recommend the quickest way I could go about getting something
>> up
>> and running in the described scenario where I need to send a TextMessage
>> from a ActiveMQ client to a GlassFish Queue?
> 
> One of these
> 
> * use the GlassFish JMS client
> * switch to the ActiveMQ broker (which can run in GlassFish)
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQ-TextMessage-to-GlassFish-Queue-tf3534521s2354.html#a9876843
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message