Archive for the Category: Programming

Flocking

And now for something completely different: flocking (aka group behavior). If you ever had a need for an algorithm that handles flocking then have a look at this article (its really interesting): http://harry.me/2011/02/17/neat-algorithms—flocking Regards, Roger Lacroix Capitalware Inc.

Also posted in C, Java, Open Source Comments Off on Flocking

ProGuard v4.6 Released

Eric Lafortune has just released ProGuard v4.6. http://proguard.sourceforge.net/ ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it preverifies the processed code […]

Also posted in Java, Open Source Comments Off on ProGuard v4.6 Released

MQ Exit Programming Tips

Here are some things that MQ Exit developers need to be aware of: 1. Most people have never developed and will never develop an MQ Exit. Developing a MQ Exit is an ‘advanced topic’ – hence, you SHOULD have experience developing Windows DLLs or Unix shared Libraries and understand the concept of parallel processing (i.e. […]

Also posted in C, IBM MQ Comments Off on MQ Exit Programming Tips

Java Programming Tips

The following Java programming tips should help developers write Java programs that will have fewer bugs / problems and run faster: 1. Avoid “equals” conditional statements where the variable is checked against a constant. Always check the constant against the variable. If myStr (String) is ever null then the following conditional statement will throw an […]

Also posted in Java Comments Off on Java Programming Tips

Information on MQ Message Behavior

The following is general information on WebSphere MQ (aka MQSeries) message behavior during normal and abnormal message processing. The first thing to understand about MQ is that, it is not a database but a real-time messaging system. It was built on the following 2 principles: Once-only delivery of a message Assured delivery of a message […]

Also posted in IBM MQ Comments Off on Information on MQ Message Behavior

JMSException and MQ Reason Codes

J2EE (JMS) programmers who are new to IBM MQ (formally WebSphere MQ, MQSeries) sometimes are confused as to why they are getting a particular JMS exception. The problem with the JMS / MQ layer is that the useful MQ information is hidden in the JMSException. By useful MQ information, I mean the MQ Completion Code […]

Also posted in IBM MQ, Java, JMS 2 Comments