org.fusesource.mq
Class ActiveMQService
java.lang.Object
org.fusesource.mq.ActiveMQService
- All Implemented Interfaces:
- JMSService
public class ActiveMQService
- extends java.lang.Object
- implements JMSService
|
Constructor Summary |
ActiveMQService(java.lang.String brokerUrl)
|
ActiveMQService(java.lang.String user,
java.lang.String password,
java.lang.String brokerUrl)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActiveMQService
public ActiveMQService(java.lang.String user,
java.lang.String password,
java.lang.String brokerUrl)
ActiveMQService
public ActiveMQService(java.lang.String brokerUrl)
getConnectionFactory
public javax.jms.ConnectionFactory getConnectionFactory()
- Specified by:
getConnectionFactory in interface JMSService
getDefaultConnection
public javax.jms.Connection getDefaultConnection()
- Specified by:
getDefaultConnection in interface JMSService
getDefaultSession
public javax.jms.Session getDefaultSession()
- Specified by:
getDefaultSession in interface JMSService
createProducer
public javax.jms.MessageProducer createProducer(java.lang.String destination)
throws javax.jms.JMSException
- Specified by:
createProducer in interface JMSService
- Throws:
javax.jms.JMSException
createConsumer
public javax.jms.MessageConsumer createConsumer(java.lang.String destination)
throws javax.jms.JMSException
- Specified by:
createConsumer in interface JMSService
- Throws:
javax.jms.JMSException
createTextMessage
public javax.jms.TextMessage createTextMessage(java.lang.String text)
throws javax.jms.JMSException
- Specified by:
createTextMessage in interface JMSService
- Throws:
javax.jms.JMSException
createBytesMessage
public javax.jms.BytesMessage createBytesMessage(byte[] payload)
throws javax.jms.JMSException
- Specified by:
createBytesMessage in interface JMSService
- Throws:
javax.jms.JMSException
start
public void start()
throws javax.jms.JMSException
- Specified by:
start in interface JMSService
- Throws:
javax.jms.JMSException
stop
public void stop()
- Specified by:
stop in interface JMSService
getMaxAttempts
public int getMaxAttempts()
setMaxAttempts
public void setMaxAttempts(int maxAttempts)
setClientId
public void setClientId(java.lang.String clientId)
setTransacted
public void setTransacted(boolean transacted)
Copyright © 2013 Red Hat. All Rights Reserved.