ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » File to TOPICSTR PUB/SUB

Post new topic  Reply to topic
 File to TOPICSTR PUB/SUB « View previous topic :: View next topic » 
Author Message
kordi
PostPosted: Tue Apr 19, 2016 1:53 pm    Post subject: File to TOPICSTR PUB/SUB Reply with quote

Centurion

Joined: 28 May 2012
Posts: 146
Location: PL

Hi there,

I have and idea to transfer a file to many different queues using publish/subscribe feature but unfortunately have no idea whether there are ready to use tools to do that.

For example, using q tool I can put files onto a queue but are there any known to you tools which could do something similar with topicstr?
Back to top
View user's profile Send private message
kordi
PostPosted: Tue Apr 19, 2016 10:25 pm    Post subject: Reply with quote

Centurion

Joined: 28 May 2012
Posts: 146
Location: PL

Well, I think I found out the answer already. I forgot queue alias may point not only other queues but also topic string, as described here below.

So I can create qalias which I can use to put messages onto (files) using for example q tool.

http://www.mqseries.net/phpBB2/viewtopic.php?t=69608&sid=bedb168c5793a69dee2f48278c754113
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Wed Apr 20, 2016 3:08 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Q can publish to a topic directly. In fact one of the examples in the program help text is exactly that:

Code:
q -Ts:TopicStr


Cheers,

Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
kordi
PostPosted: Wed Apr 20, 2016 3:34 am    Post subject: Reply with quote

Centurion

Joined: 28 May 2012
Posts: 146
Location: PL

Q was just an example because we are using http://spazio-xsp-base.sourceforge.net/ to put files onto queue.

But it is good to know that Q has this feature. Thanks Paul
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Apr 20, 2016 5:44 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

kordi wrote:
Q was just an example because we are using http://spazio-xsp-base.sourceforge.net/ to put files onto queue.

I think you may find it will fail with Pub/Sub - I believe Spazio uses the message id as a correlation for the header, payload, and footer messages that each file is chunked into, but it was a quick test so I could be wrong...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
kordi
PostPosted: Wed Apr 20, 2016 1:42 pm    Post subject: Reply with quote

Centurion

Joined: 28 May 2012
Posts: 146
Location: PL

exerk You are right. I can put file onto alias queue which points topic, but I cannot retrieve the file. I think it happened because file was sliced into pieces like you wrote.

When using Q tool load and offload of file from the queue works perfectly fine Thanks Paul for this awesome tool!
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Wed Apr 20, 2016 2:16 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

You are welcome - awesome is what we do
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
kordi
PostPosted: Thu Apr 21, 2016 2:25 am    Post subject: Reply with quote

Centurion

Joined: 28 May 2012
Posts: 146
Location: PL

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » File to TOPICSTR PUB/SUB
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.