类 ActiveMQProducer
java.lang.Object
com.sh.wf.mq.activemq.ActiveMQBase
com.sh.wf.mq.activemq.ActiveMQProducer
Description: ActiveMQ消息中间件发布消息
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2016年12月5日
-
字段概要
字段从类继承的字段 com.sh.wf.mq.activemq.ActiveMQBase
DEFAULT_TOPIC, session, topicName -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ActiveMQProducerstatic ActiveMQProducergetInstance(String topicId) voidprocessAfterGetConnecion(org.apache.activemq.pool.PooledConnection connection) voidprocessConnect(javax.jms.Topic topic) booleansendMessage(String msg) 发送消息boolean发送消息,发送完毕后会马上关闭boolean发送对象boolean发送消息,发送完毕后会马上关闭从类继承的方法 com.sh.wf.mq.activemq.ActiveMQBase
commit, connect, connect, disconnect, getTopicName, rollback, setTopicName
-
字段详细资料
-
messageProducer
protected javax.jms.MessageProducer messageProducer
-
-
构造器详细资料
-
ActiveMQProducer
public ActiveMQProducer() -
ActiveMQProducer
-
-
方法详细资料
-
getInstance
-
getInstance
-
processAfterGetConnecion
public void processAfterGetConnecion(org.apache.activemq.pool.PooledConnection connection) -
sendMessage
发送消息- 参数:
msg- String- 返回:
- boolean
-
sendObjectMessage
发送对象- 参数:
obj- 实现了Serializable可序列化的对象- 返回:
- boolean
-
sendMessageSecurity
发送消息,发送完毕后会马上关闭- 参数:
msg- String- 返回:
- boolean
-
sendObjectMessageSecurity
发送消息,发送完毕后会马上关闭- 参数:
obj- Serializable- 返回:
- boolean
-
processConnect
public void processConnect(javax.jms.Topic topic) throws javax.jms.JMSException - 指定者:
processConnect在类中ActiveMQBase- 抛出:
javax.jms.JMSException
-