|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Oracle Service Bus - Publish to MQ Topic? |
« View previous topic :: View next topic » |
Author |
Message
|
vsathyan |
Posted: Thu Apr 14, 2016 11:26 pm Post subject: Oracle Service Bus - Publish to MQ Topic? |
|
|
Centurion
Joined: 10 Mar 2014 Posts: 121
|
Hi All,
We have a requirement for one of our application will do a single publish operation and the messages have to be routed to two different applications.
For example,
Message 1 - should be received by application A and B.
Message 2 - should be received only by applicaiton A.
We have the following setup in place
DEFINE TOPIC(TOPIC.AB) TOPICSTR('/MSG')
DEFINE SUB(SUB.A) DEST(QL.A) TOPICSTR('/MSG/#')
DEFINE SUB(SUB.B) DEST(QL.B) TOPICSTR('/MSG/B')
When we publish a message using the sample amqspub program given by IBM,
amqspub /MSG QMGRNAME, the message reaches only QL.A (working as expected).
when we publish a message as below
amqspub /MSG/B QMGRNAME, the message reaches QL.A and QL.B (working as expected).
However, the main question now is OSB capable of opening a MQ Topic directly?
We know, that OSB can open a MQ queue which is pointing to a topic. This will not help solve the purpose, because they wont be doing a 'publish' on a queue, and it would be a 'Put' operation. Moreover, when you do a publish operation only, i can specify the topic string as while pushing the message to the topic.
Any one can shed some light, as to can OSB open a MQ Topic directly?
We are also considering using a message selector, as an alternative if it does not have any impact on performance.
Any other suggestions to achieve this are also welcome. Thanks in advance for your inputs.
Regards,
vsathyan _________________ Custom WebSphere MQ Tools Development C# & Java
WebSphere MQ Solution Architect Since 2011
WebSphere MQ Admin Since 2004 |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 15, 2016 4:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Is Oracle OSB a JMS application? Then it can do whatever JMS can. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
vsathyan |
Posted: Sun Apr 17, 2016 11:27 pm Post subject: |
|
|
Centurion
Joined: 10 Mar 2014 Posts: 121
|
Comment from my OSB architect
Quote: |
"JMS is queueing feature hosted in weblogic. OSB is a middleware product hosted on top of weblogic. Both are used for different reasons" |
_________________ Custom WebSphere MQ Tools Development C# & Java
WebSphere MQ Solution Architect Since 2011
WebSphere MQ Admin Since 2004 |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Apr 18, 2016 12:07 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
As Weblogic can open a queue and write to it then your solution is in sight.
Create an alias queue that actually does the publish.
Code: |
DEFINE QALIAS('MY.PUB') +
TARGET('MYPUBTOPIC') +
TARGTYPE(TOPIC) +
REPLACE
|
Then define the topic
Code: |
DEFINE TOPIC('MYPUBTOPIC') +
TOPICSTR('MY/TOPIC/FREDWASHERE') +
DESCR('My test Topic') +
REPLACE
|
Obviously this does have limitations but may work in simple cases. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
vsathyan |
Posted: Mon Apr 18, 2016 12:51 am Post subject: |
|
|
Centurion
Joined: 10 Mar 2014 Posts: 121
|
Thanks for the response smdavies.
We already have this setup and we can use this only for duplication of messages to multiple subscribers.
However, if a message has to be routed based on a topic string, the application is not able to open a 'MQ Topic' directly.
This, i feel is a limitation in the product and i'm unable to 'Publish messages to a topic string'.
Thanks again.
Regards,
vsathyan _________________ Custom WebSphere MQ Tools Development C# & Java
WebSphere MQ Solution Architect Since 2011
WebSphere MQ Admin Since 2004 |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Apr 18, 2016 4:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There isn't such a thing as an 'MQ Topic' directly. It's not an object that can be opened. It's a thing that can be subscribed to or published to.
JMS can publish and subscribe to anything that has a JMS provider.
MQ has a JMS provider. Using the MQ Provider, JMS applications can happily publish and subscribe to topics hosted on MQ.
Your architect did very well in avoiding the question. Or at least, in avoiding answering your question.
I believe your question was 'how do I connect Oracle OSB applications/services/widgets/microgreens/whatever the verb of choice is these days to pub/sub over MQ".
The answer to that is, very very likely, 'Using JMS'. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|