javax.naming.NameNotFoundException: MyXYZQueueConnectionFactory not found error occurred when JNDI name trying to configured it not exist on provider or some mismatch with name.
In this example, I was trying to get MyXYZQueueConnectionFactory while factory on provider JNDI name is given as MyQueueConnectionFactory.
Stacktrace of Error
Binding name:`java:comp/env/jms/QueueName ` Binding name:`java:comp/env/jms/MyQueueConnectionFactory ` JNDI lookup failed: javax.naming.NameNotFoundException: MyXYZQueueConnectionFactory not found Unbinding name:`java:comp/env/jms/QueueName ` Unbinding name:`java:comp/env/jms/MyXYZQueueConnectionFactory `
- Check for JNDI name and factory created on configured server.
- Check name of JNDI and factory is same as you want to pint on server.