activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Copy Message from queue to a text file.
Date Thu, 29 Aug 2013 21:36:02 GMT
On 08/29/2013 05:21 PM, Wendell L. Hatcher wrote:
> Just take one message consume and print to a text file.  Is this possible
> in activemq?
ActiveMQ's job isn't to do things with text files.  You can consume a 
Message using the JMS API and then do whatever you want with the message 
contents.  As Christian said there are a number of Camel components that 
make doing things like this very simple.  Or just write the java code to 
write the Message to a file, up to you.


>
> On Thu, Aug 29, 2013 at 4:45 PM, ceposta [via ActiveMQ] <
> ml-node+s2283324n4670933h76@n4.nabble.com> wrote:
>
>> not sure what you mean.
>> like you have a queue of 5 messages, and you want to "extract" one and
>> print that to a text file? or you just want to consume one message and
>> print that to a file? your best bet might be to look at apache camel.
>> doing
>> this would be dead simple.
>>
>>
>> On Thu, Aug 29, 2013 at 11:23 AM, Wendell L. Hatcher <
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4670933&i=0>>
>> wrote:
>>
>>> Is it possible to copy a single message from a queue to a text file?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>>
>> http://activemq.2283324.n4.nabble.com/Copy-Message-from-queue-to-a-text-file-tp4670925.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> *Christian Posta*
>> http://www.christianposta.com/blog
>> twitter: @christianposta
>>   http://www.christianposta.com/blog
>>
>>
>> ------------------------------
>>   If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://activemq.2283324.n4.nabble.com/Copy-Message-from-queue-to-a-text-file-tp4670925p4670933.html
>>   To unsubscribe from Copy Message from queue to a text file., click here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4670925&code=d2VuZGVsbGhhdGNoZXIxMDc0QGdtYWlsLmNvbXw0NjcwOTI1fC02MzcxNDI1MjU=>
>> .
>> NAML<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Copy-Message-from-queue-to-a-text-file-tp4670925p4670935.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message