Any sample message and exception services for WebSphere MQ A

Anyone can pass me the sample codes for message and exception services?

Thanks a lot.

J-