How to use smartclient to publish and subcribe message from ActiveMQ's message queue?
thanks....
thanks....
messaging.jms.context: _container_
messaging.jms.jndiPrefix: jms
messaging.jms.topicConnectionFactory: TopicConnectionFactory
Context ctx = new InitialContext(new Hashtable()); ctx = (Context)ctx.lookup("java:comp/env"); ctx = (Context)ctx.lookup("jms"); // this is actually looked up from config, but listing it explicitly here String topicConnectionFactoryName = "TopicConnectionFactory"; TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory)ctx.lookup(topicConnectionFactoryName);
java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory # use the following property to configure the default connector java.naming.provider.url = tcp://localhost:61616 # use the following property to specify the JNDI name the connection factory # should appear as. connectionFactoryNames = TopicConnectionFactory # register some topics in JNDI using the form # topic.[jndiName] = [physicalName] topic.chatChannel = chatChannel
messaging.dispatcherImplementer: com.isomorphic.messaging.JMSMessageDispatcher # jms configuration - only relevant for JMSMessageDispatcher, not used by LocalMessageDispatcher jndi.messaging.java.naming.factory.initial: org.apache.activemq.jndi.ActiveMQInitialContextFactory jndi.messaging.java.naming.provider.url: tcp://localhost:61616 messaging.jms.context: messaging messaging.jms.jndiPrefix: messaging.jms.topicConnectionFactory: TopicConnectionFactory
Comment