Thanks jaikiran,
This fix looks good to me but there is a problem from previous commit. It always checks JBoss Messaging availability when deploying a rar or MDB, in MessageDrivenComponentDescriptionFactory.java. My rar and MDB will not get deployed.