javax.naming.Reference cannot be cast to javax.jms.TopicConnectionFactory
posted 2 years ago
I am having the following issue, while I am trying to get TopicConnectionaFactory. I am not sure why my TopicConnectionFactory is getting as Reference. Any suggestion is welcome.
Java Code that is causing the issue:
java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.TopicConnectionFactory at com.av.mobi.jca.esb.em.genesis.GenConnector$AsyncSampleOrderDelegate.publishRequest(GenConnector.java:915)
Difference I see when I print the Interface information if the factory lookup:
Working one is getting:: Object ref from factory lookup:
Non Working one getting:: Object ref from factory lookup: