Sunile, that post you linked references an outdates processor.
Instead, use Consume/PublishJMS, it has been tested to work with WMQ. Though you are referencing MQ Series (this was rebranded to WebSphere MQ years ago), so it it's older than 7.x, no guarantees.