Java: ActiveMQ in-VM Configuration, Initialization, and Usage
January 24th, 2009 by jeremychone- Sun JMS Tutorial
- Creating Robust JMS Application (from SUN Tutorial)
- ActiveMQ JNDI Configration
- Developing a Simple Example (Oreilly)
Creating a Connection Factory (Programmatic):
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.Connection;
import javax.jms.Session;
...
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost");
...
Connection connection = factory.createConnection();
...
connection.start();
...
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);