|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Coding Standards |
« View previous topic :: View next topic » |
Author |
Message
|
David.Partridge |
Posted: Fri May 23, 2008 6:02 am Post subject: MQ Coding Standards |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
I have a suspicion that I may be asked to produce one of these in the near future, and would prefer not to dredge my memory for "bad practices" and "good practices", and miss lots of things as a result (especially in the Java side of things).
The second thing that goes as you get older is the memory, I can't remember what the first one is .
I wonder if any of you mavens out there have already produced such documents that I can use as inspiration.
Ideally this should cover both base MQI, Base Java, and JMS with examples of good stuff and bad stuff.
Any MQ admin dos and don'ts would be useful too.
Examples (stuff I can remember quickly)
DO use get w/convert when dealing with string data.
DON'T MQCONN, MQOPEN. MQPUT or MQGET one message, MQCLOSE, MQDISC (at least not normally). I've seen this create a very effective DoS attack on a CHIN when run from a multi-threaded client runing on multiple servers.
Do Use Bindings in preference to Client connections if you can (I know not really programming, but ...)
If you've anything you are prepared to share, please email it to:
david dot partridge at dsl dot pipex dot com
Many thanks
Dave |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri May 23, 2008 9:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If you are running JMS in stand alone USE a FILE context.
If you are running JMS in a J2EE server use the server's context. If the server's context does not have MQ setup use the File context to patch into the Server's context....
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun May 25, 2008 7:11 pm Post subject: Re: MQ Coding Standards |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
David.Partridge wrote: |
....
DO use get w/convert when dealing with string data.
...
Dave |
When dealing with string data, ALWAYS use GET with CONVERT option, and ALWAYS use PUT with STRING format.
Even if the source and target platforms use the same basic character set (eg. ASCII), there can be subtle differences between their actual code pages. And you never know, but one of the applications may get moved to a non-ASCII platform, such as z/OS. _________________ Glenn |
|
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
|
|
|
|