1 2 Previous Next 25 Replies Latest reply on Mar 31, 2009 3:22 PM by clebert.suconic Go to original post
      • 15. Re: JBM 2.0 examples
        gaohoward

        Thanks Tim, very good points. I'll do that.

        • 16. Re: JBM 2.0 examples
          ataylor

           

          I think we can move the name resolving to the JMSExample base class:


          I don't think so, part of the example is showing how to look up destinations, a user shouldn't have to look in the base class to see how to do this.

          Let me do these examples, they are easy for me to start.


          good, Howard can you update the wiki page so we know what example you are working on.

          2) Each example needs a readme, structured in a standard way. We should create a template for this.


          +1, ive added a READ_ME.txt for the first examples, if we follow this naming convention then i can use these to build the examples chapter for the docs.

          • 17. Re: JBM 2.0 examples
            gaohoward

            ok Andy, I'll update the wiki. Thx.

            • 18. Re: JBM 2.0 examples
              ataylor

              fyi.

              The default beans file used is examples/jms/common/config/jbm-example-beans.xml. This can be overridden bu adding a different beans file under the actual eaxamples config dir, i.e. examples/queue/config/diff-beans.xml, and changing the param from the extended build file, i.e.

              <target name="run">
               <antcall target="runExample">
               <param name="example.classname" value="org.jboss.jms.example.QueueExample"/>
               <param name="jbm.example.beans.file" value="jbm-example-beans2.xml"/>
               </antcall>
               </target>
              
              


              • 19. Re: JBM 2.0 examples
                ataylor

                Also if you need extra config you can also add this to the examples local config dir and it should get picked up. i.e. extra queues, topic Connection Factories. Or override the getQueues, getTopic method from the base class.

                • 20. Re: JBM 2.0 examples
                  gaohoward

                  Thanks for the info andy.

                  • 21. Re: JBM 2.0 examples
                    timfox

                     

                    "ataylor" wrote:


                    2) Each example needs a readme, structured in a standard way. We should create a template for this.


                    +1, ive added a READ_ME.txt for the first examples, if we follow this naming convention then i can use these to build the examples chapter for the docs.


                    I'd prefer to see a readme.html

                    • 22. Re: JBM 2.0 examples
                      ataylor

                       

                      I'd prefer to see a readme.html


                      Ok, lets do that. can we decide on a format for code etc.

                      • 23. Re: JBM 2.0 examples
                        ataylor

                        Ive added support for running multiple servers, just do:

                        <target name="run">
                         <antcall target="runExample">
                         <param name="example.classname" value="org.jboss.jms.example.QueueExample"/>
                         <param name="jbm.example.beans.file" value="jbm-example-beans.xml jbm-example-beans2.xml"/>
                         </antcall>
                         </target>



                        • 24. Re: JBM 2.0 examples
                          ataylor

                          Ive also deleted all un wanted examples apart from the perf, which i will refactor

                          • 25. Re: JBM 2.0 examples
                            clebert.suconic

                            Now it's your guys's turn to sleep... and I'm having to guess what example nobody is working on yet :-)

                            If you guys could please put your names on the list :-).. .thanks!


                            http://www.jboss.org/community/docs/DOC-13460


                            1 2 Previous Next