4 Replies Latest reply on Jan 22, 2003 9:02 PM by Eric

    The location of JMS Configuration files

    Eric Newbie

      I downloaded jboss-3.2.0RC1.zip in http://sourceforge.net/projects/jboss/. In JBoss online doc (http://wwwswt.fzi.de/~christo/praktikum/j2eeapi/jboss/doc/ch08s07.html), it says that there are 2 files (jbossmq.xml and jboss.jcml) in conf/default. However, I can't find that. Actually, where are they?


        • 1. Re: The location of JMS Configuration files
          Pranav Kapil Newbie

          These files are no longer there in JBoss 3.x
          Instead have a look at jbossmq-service.xml and jbossmq-destination-service.xml...

          Cheers

          > I downloaded jboss-3.2.0RC1.zip in
          > http://sourceforge.net/projects/jboss/. In JBoss
          > online doc
          > (http://wwwswt.fzi.de/~christo/praktikum/j2eeapi/jboss
          > doc/ch08s07.html), it says that there are 2 files
          > (jbossmq.xml and jboss.jcml) in conf/default.
          > However, I can't find that. Actually, where are
          > they?
          >
          >

          • 2. Re: The location of JMS Configuration files
            Eric Newbie

            Is that I should modify it in ~\jboss-3.2.0RC1\server\default\deploy\ ?

            Besides, the doc (http://wwwswt.fzi.de/~christo/praktikum/j2eeapi/jboss/doc/ch08s07.html) I read is for version 3.x.x. But why still not uptodate? Any updated doc about JBoss3?

            Thx a lot!

            • 3. Re: The location of JMS Configuration files
              Pranav Kapil Newbie

              First...I don't know why the documentation is not updated, I am learning JBoss on my own.
              Second...let me know what exactly why you want to edit these files.

              If you are want to create some Topic/Queue then that you can do by adding new entries in jboss-destination-service.xml file.
              -Or-
              You can start JBoss, open http://localhost:8080/jmx-console
              Then in Agent View, go to jboss.mq, then click on DestinationManager.
              The DestinationManager is a MBean, and you can use the listed methods to add new destinations(Topic/Queue) using the MBean view.

              !!!! Remember: The Queue/Topic will remain alive as long as the server is up !!!

              Cheers

              > Is that I should modify it in
              > ~\jboss-3.2.0RC1\server\default\deploy\ ?
              >
              > Besides, the doc
              > (http://wwwswt.fzi.de/~christo/praktikum/j2eeapi/jboss
              > doc/ch08s07.html) I read is for version 3.x.x. But
              > why still not uptodate? Any updated doc about
              > JBoss3?
              >
              > Thx a lot!

              • 4. Re: The location of JMS Configuration files
                Eric Newbie

                I have some simple JMS program which can be run on Sun J2sdkee, but I fail to run it on JBoss. The following is the error message:

                JNDI API lookup failed: javax.naming.CommunicationException: Can't find SerialContextProvider

                I already added my queue in "...\jboss-3.2.0RC1\server\default\deploy\jbossmq-destinations-service.xml" like that:

                <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager

                (Is it same as "j2eeadmin -addJmsDestination MyQueue queue" in J2sdkee?)

                Moreover, Should I run my program using JBoss library? I run my code using this way:
                java -Djava.endorsed.dirs=%J2EE_HOME%\lib\endorsed -classpath %J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\system\jmsra.jar;. SimpleAsynchConsumer MyQueue queue

                Besides, I can't find any error/message in the prompt that is used to start the JBoss. So whether I use JBoss wrongly or my code cannot be used in JBoss?

                Thx for you help!