Hi Jiang, Any reason why you're not using JNDI to configure and access destinations and connection cactories? I'm thinking it would be best to avoid referencing AMQ-specific objects (e.g., ActiveMQConnectionFactory) and let JNDI render the connection factories and destinations for you. It would make for portable code.
Regards, Joe Jiang wrote: > > From JMS Spec, ConnectionFactory and Destination are the objects that > administrator can admin. In activemq destination can be created through > JMX(I have tried). But I don't understand ConnectionFactory very clearly , > in activemq , ConnectionFactory is created through constructor . So I > think if one client "new ActivemqConnectionFactory(url,user,pass) ", there > will happen several things. First broker will create one factory object in > broker side. Second client will get a reference to the factory > object(maybe a reference to an agent object , which in fact communication > to the remote factory object ). Then connection can be created through > that factory reference. What I think is correct ? > And in jconsole , what stands for ConnectionFactory? Or if I want create > one GUI tools admin activemq, which APIs should I use to get all > ConnectionFactorys in one broker ? I do not know in activemq5.0 , through > Web Console , what can I get ?(Just like jconsole or have > ConnectionFactory list ,we can add/remove/view CoonectionFactory and so > on...) > > Anyone knows about this ? thanks > > > -- View this message in context: http://www.nabble.com/What-is-the-relation-between-broker-and-connectionfactory-tf4085292s2354.html#a11749026 Sent from the ActiveMQ - User mailing list archive at Nabble.com.