Hi
i am using the JBoss-4.2.3.GA, JB-Messaing-1.4.0.GA and JDK 1.6.0_07 for my project.
At the runtime the following error message is coming
java.lang.ClassCastException: org.jnp.interfaces.MarshalledValuePair cannot be cast to javax.jms.QueueConnectionFactory
Hashtable params = new Hashtable(); params.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); params.put(Context.PROVIDER_URL, "localhost:1199"); params.put(Context.URL_PKG_PREFIXES, "org.jnp.naming:org.jnp.interfaces"); Context context = new InitialContext(params); QueueConnectionFactory fac = (QueueConnectionFactory)context.lookup("ConnectionFactory");
Read the JBM user guide which explains which libraries are needed on the client side and how to replace JBoss MQ with JBM,