7 Replies Latest reply on Nov 18, 2001 10:11 PM by Hiram Chirino

    Durable Topic Example

    Brian Lichtenwalter Newbie

      I'm creating a durable topic destination in the
      jboss.jcml file following these directions found in the manual...

      [2.4.1. The addition of destinations is done in the jboss.jcml file,
      instead:



      Users are instead configured in the file jbossmq-state.xml, also
      found in directory conf/default. The entries look the same as those
      above.]

      ...I'm executing JBoss w/o deploying a MDB for the durable topic.
      The example test app is unable to locate the destination...

      [java] Connection problem: javax.naming.NameNotFoundException:
      testDurableTopic not bound

      Is the manual up to date? What configuration do I need in order to
      get a durable subscriber working?

      It would be nice if there was a working example similiar to the Sun
      DurableSubscriberExample available in the examples download. None of
      the current examples make the call...

      topicSession.createDurableSubscriber(topic, "john")

      Also, it would be nice if there was a default durable topic
      destination included in the jboss.jcml file,
      perhaps "testDurableTopic".

      -brian

        • 1. Re: Durable Topic Example
          Peter Antman Expert

          Have you added the testDurableTopic to the correct jboss.jcml?

          Check JNDI view from the management gui (8082) to see that it is really there.

          //Peter

          • 2. Re: Durable Topic Example
            Brian Lichtenwalter Newbie

            Configuring the jboss\conf\default\jboss.jcml and launching JBoss with bin\run.bat. Configuring the jboss.jcml w/...



            ...and the testDurableTopic destination does not appear in the JMX RI Agent view.

            Of course when making this topic...



            ...the testDurableTopic destination does appear in the JMX RI Agent view.

            • 3. Re: Durable Topic Example
              Peter Antman Expert

              This is did not get. I just know that people have had problems finding the correct jboss.jcml when using the jboss-tomcat dist, since it is then in conf/tomcat and not in conf/default. This is a common error, and its better to check that first than start some long debugging detour.

              //Peter

              • 4. Re: Durable Topic Example
                Brian Lichtenwalter Newbie

                Using the JBoss & Tomcat bundle. Somebody correct me if I'm wrong, when launching jboss with jboss\bin\run_with_tomcat.bat the jboss\conf\tomcat\jboss.jcml file is used. And, when launching jboss with jboss\bin\run.bat the jboss\conf\default\jboss.jcml file is used.

                Anyways to avoid confusion as to which jboss.jcml file was used I added the testDurableTopic to both jboss\conf\default\jboss.jcml and jboss\conf\tomcat\jboss.jcml. The results were still the same, the testDurableTopic does not appear in the JMX RI Agent View. Again creating the topic by following the instructions in the manual...



                My version of JBoss...

                JBOSS_DIST=c:\JBoss-2.4.3_Tomcat-3.2.3\jboss

                • 5. Re: Durable Topic Example
                  Hiram Chirino Expert

                  Order of MBeans in the file might matter. Do you have it placed next to the other TopicManager mbeans??

                  (This order problem is being fixed in the CVS HEAD with mbean-ref declarations)

                  • 6. Re: Durable Topic Example
                    Brian Lichtenwalter Newbie

                    Here's an order that I've tried, the testDurableTopic is the first one...

                    <!-- The following three line create 3 topics named: testTopic, example, and bob -->





                    Here's the JMX RI Agent View...

                    JBossMQ
                    service=InvocationLayer,type=JVM
                    service=InvocationLayer,type=OIL
                    service=InvocationLayer,type=RMI
                    service=InvocationLayer,type=UIL
                    service=PersistenceManager
                    service=Queue,name=A
                    service=Queue,name=B
                    service=Queue,name=C
                    service=Queue,name=D
                    service=Queue,name=E
                    service=Queue,name=F
                    service=Queue,name=controlQueue
                    service=Queue,name=testQueue
                    service=Server
                    service=StateManager
                    service=Topic,name=bob
                    service=Topic,name=example
                    service=Topic,name=testTopic

                    The mbean code "org.jbossmq.server.TopicManager" just does not create a topic destination.

                    • 7. Re: Durable Topic Example
                      Hiram Chirino Expert

                      I see the problem. Notice the difference of the following two lines:




                      Yes, thats right. Your missing the period in jboss.mq

                      Regards,
                      Hiram