If you using 4.2 you should have the JMS configuration in deploy-hasingleton (Its JBoss-MQ)
Look into the docs/examples/.../jms directory to see some example files for different persistences.
Does it help?
Thanks for your immediate response, I appreciate that.
What I have found out is that magic to make a message can be persistent has to do with DeliveryMode property. By default, Message interface (package javax.jms) uses Persistent as value for this property.
public static final int DEFAULT_DELIVERY_MODE = 2;
However what I would want to know was if it were possible through Application server JBoss configuration to make message can be persistent, even though a client application sends message by setting DeliveryMode property to NON_PERSISTENT (value 1).
Sorry for my poor knowledge of this approach.