1 Reply Latest reply on Oct 27, 2005 4:53 AM by Alexander Serbul

    problem in programming with jms

    Leio Wu Newbie

      i 'm new here.have some problems when programming with jms in jboss 4.0.2:

      1.What's the differece and relationship between the config files under deploy-hasingleton\jms and deploy\jms? What do I need to do if I want to config my jms provider and jms destination?

      2.When running a jms test program,I encounted such exception:
      java.lang.ClassCastException: javax.naming.Reference

      it is resulted in the code :

      Object tmp = iniCtx.lookup("ConnectionFactory");
       TopicConnectionFactory tcf = (TopicConnectionFactory)tmp;

      I found the fixing method saying : add the messaging.jar, messagingclient.jar and messagingImpl.jar to the project. But the problem is i can't find them anywhere,who could tell me how to do?Most of the Jms programming guides are in WebLogic or WebSphere,is there any thing like this in jboss 4 environment?

      thanks a lot!