-
15. Re: JBM 2.0 examples
gaohoward Mar 31, 2009 4:18 AM (in response to timfox)Thanks Tim, very good points. I'll do that.
-
16. Re: JBM 2.0 examples
ataylor Mar 31, 2009 4:21 AM (in response to timfox)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 Mar 31, 2009 4:33 AM (in response to timfox)ok Andy, I'll update the wiki. Thx.
-
18. Re: JBM 2.0 examples
ataylor Mar 31, 2009 4:39 AM (in response to timfox)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 Mar 31, 2009 4:42 AM (in response to timfox)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 Mar 31, 2009 4:45 AM (in response to timfox)Thanks for the info andy.
-
21. Re: JBM 2.0 examples
timfox Mar 31, 2009 4:59 AM (in response to 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 Mar 31, 2009 5:12 AM (in response to timfox)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 Mar 31, 2009 5:56 AM (in response to timfox)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 Mar 31, 2009 6:00 AM (in response to timfox)Ive also deleted all un wanted examples apart from the perf, which i will refactor
-
25. Re: JBM 2.0 examples
clebert.suconic Mar 31, 2009 3:22 PM (in response to timfox)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