my ha-jndi client is servlet
my jndi name is SearchBatch_WS
my war web.xml contains
<resource-ref>
<res-ref-name>jms/ConnectionFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<res-ref-name>jms/Queue</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Container</res-auth>
</resource-ref>

while deploying itself i am getting javax.naming.NamingException: resource-ref: jms/ConnectionFactory has no valid JNDI binding.

Please help me.