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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...