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

    problem in programming with jms

    lovejesus

      hey,everyone!
      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!

        • 1. Re: problem in programming with jms
          alexserbul

          In my case all is stored in deploy/jms - I made ssl-jms providers and MDBs cross-linking between two boxes and didn't encounter problems in JMS on JBoss. In JBoss Admin. manual see "Messaging on JBoss", I found a lot of goods there.