Here is a sample of a consumer and producer example for RabbitMQ. The steps are Download Erlang Download Rabbit MQ Server Download Rabbit MQ Java client jars Compile and run the below two class and you are done. This sample create a Durable Exchange, Queue and a Message. You will have to start the consumer first before you start the for the first time. For more information on AMQP, Exchanges, Queues, read this excellent tutorial http://blogs.digitar.com/jjww/2009/01/rabbits-and-warrens/ +++++++++++++++++RabbitMQProducer.java+++++++++++++++++++++++++++ import com.rabbitmq.client.Connection; import com.rabbitmq.client.Channel; import com.rabbitmq.client.*; public class RabbitMQProducer { public static void main(String []args) throws Exception { ConnectionFactory factory = new ConnectionFactory(); factory.setUsername("guest"); factory.setPassword("guest"); factory.setVirtualHost("/"); factory.setHost("127.0.0.1"); factory.se...
You can change the 'searchable' setting of your blog to hide it from being included in google search results. :-)
ReplyDeleteThe intent is to have Google search/index it but was surprise to see it doing near real time. I was a leecher (http://www.urbandictionary.com/define.php?term=leecher) for past 5-6 years, therfore its time to give back to community for what ever I can give back.
ReplyDeleteGood honest blog.
ReplyDeleteGood honest blog
ReplyDelete