[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBM 2.0 examples
gaohoward
do-not-reply at jboss.com
Tue Mar 31 02:25:17 EDT 2009
hi Andy,
I think we can move the name resolving to the JMSExample base class:
| InitialContext initialContext = getContext();
| Topic topic = (Topic) initialContext.lookup("/topic/exampleTopic");
| ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("/ConnectionFactory");
|
|
So that in each example, we only do get...
|
| public void runExample()
| {
| Topic topic = getTopic("/topic/exampleTopic");
| ConnectionFactory = getConnectionFactory("/ConnectionFactory");
| .......
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222203#4222203
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222203
More information about the jboss-dev-forums
mailing list