Re: how to lookup a topicName dynamically

2007-03-29 Thread new2activemq
le casting the error goes away, but the information is not useful anymore. Is there a workaround for this? Thanks for all the help! Adrian Co wrote: > > You have to use JMX to access it and enable JMX in activemq. > > http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutorial/tutorial

Re: how to lookup a topicName dynamically

2007-03-29 Thread new2activemq
> > If you want to access a remote broker (i.e. if you run it via > ./activemq), you need to use JMX and call the getTopics, getQueues, etc > of the BrokerViewMBean. > > Hope that helps. > > > new2activemq wrote: >> James, >> >> thanks a lot for your help b

Re: how to lookup a topicName dynamically

2007-03-28 Thread new2activemq
JNDI javadoc > http://java.sun.com/j2se/1.5.0/docs/api/javax/naming/InitialContext.html#list(java.lang.String) > > or a Sun tutorial on JNDI > > > On 3/22/07, new2activemq <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I am trying to write a debug tool

how to lookup a topicName dynamically

2007-03-22 Thread new2activemq
Hi, I am trying to write a debug tool where as a user, I do not know the topicNames that exist. Normally, if I knew the topic name, I could just do this: myContext.lookup(jndiName) where jndiName is the topicName Is there a way I can pass in an argument, or a wildcard argument that will look u