Skip to content

Instantly share code, notes, and snippets.

View hansjmelby's full-sized avatar

Hans-Jacob Melby hansjmelby

  • Private
  • Oslo,Norway
View GitHub Profile
@hansjmelby
hansjmelby / SimpleDelayExample
Last active August 29, 2015 14:04
Simple JMS client that uses delayed messaging in activeMQ
import javax.jms.Connection;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.ScheduledMessage;