I am getting a ClassCastException when retrieving a QueueConnectionFactory bound to the JNDI tree. The class of the object returned is javax.naming.Reference. The code is as follows:
Where env is a hashtable with the following environment variables:
PROVIDER_URL: iiop://localhost:900
INITIAL_CONTEXT_FACTORY:com.ibm.ejs.ns.jndi.CNInitialContextFactory
I have downloaded the latest MA88 pack and installed it.
I have tried using javax.rmi.PortableRemoteObject.narrow() on the object - still a ClassCastException
When working with persistent name server you can specify the context name with the provider url itself (iiop://localhost:900/jms ). Then when you obtain the Context try using the instance of InitialDirContext class.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum