Author |
Message
|
tingwen |
Posted: Fri Aug 19, 2005 10:18 am Post subject: Write Publish/Subscribe in straight MQSeries 5.3 Java classe |
|
|
Novice
Joined: 19 Aug 2005 Posts: 24
|
Can I write publish/subscribe model in straight MQSeries Java API, rather than JMS spec? I am talking MQSeries 5.3? thanks
wen |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 19, 2005 10:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can write Pub/Sub applications in any programming environment that can populate an MQRFH2 header.
So, yes, you can do this in the WebSphere MQ API for Java. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tingwen |
Posted: Fri Aug 19, 2005 10:25 am Post subject: |
|
|
Novice
Joined: 19 Aug 2005 Posts: 24
|
thanks for your confirmation so fast....
anywhere you know that I can get sample code by any chance?
wen |
|
Back to top |
|
 |
webspherical |
Posted: Fri Aug 19, 2005 10:31 am Post subject: |
|
|
Acolyte
Joined: 15 Aug 2005 Posts: 50
|
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Aug 19, 2005 11:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Why go to all this trouble writing an RFH2 header in java base when it is so easy using the JMS interface ?  |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 19, 2005 11:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
fjb_saper wrote: |
Why go to all this trouble writing an RFH2 header in java base when it is so easy using the JMS interface ?  |
Because JMS requires a lot more classes added to the application, and can be slower...
Because JMS hides things that you may possibly need to see or adjust...
Because you are not otherwise using J2EE at all, so why include a piece of it? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tingwen |
Posted: Fri Aug 19, 2005 11:23 am Post subject: |
|
|
Novice
Joined: 19 Aug 2005 Posts: 24
|
performance is our big concern,
wen |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 19, 2005 12:22 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
tingwen wrote: |
performance is our big concern, |
As I understand it, the largest performance hit from JMS comes with MDBs. MDBs are around 30% slower than a straight listener - because the app server is so heavily involved.
But the performance report support packs should have much better and more reliable information. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|