kr.co.hit.live.jms
Class QueueMessageSender
java.lang.Object
kr.co.hit.live.jms.BaseMessageProducer
kr.co.hit.live.jms.QueueMessageSender
- All Implemented Interfaces:
- JMSMessageProducer
public class QueueMessageSender
- extends BaseMessageProducer
- implements JMSMessageProducer
Queue방식으로 메세지를 전송하기 위한 클래스.
- Since:
- 3.0
- Version:
- $Revision: 1.1 $ $Date: 2006/09/26 08:20:09 $
- Author:
- 홍선주(현대정보기술)
| Methods inherited from class kr.co.hit.live.jms.BaseMessageProducer |
commitSession, createMessageHeader, getDestination, getDestinationType, getJmsEngine, releaseResource, rollbackSession, setDestination, setDestinationType, setJmsEngine, setMessage, setMessageType, startConnection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueMessageSender
public QueueMessageSender()
initResource
public void initResource(String jmsFactoryName,
String dest,
String jmsEngine,
Properties env)
throws LiveException
주어진 파라미터 정보들을 기반으로 JMS 서비스와 관련된 리소스들을 초기화시킨다.
- Specified by:
initResource in interface JMSMessageProducer
- Parameters:
jmsFactoryName - 커넥션 팩토리 타입에 대한 JNDI 네임.dest - JMS 메시지를 수신할 데스티네이션 이름.env - 컨텍스트 팩토리정보돠 JMS 서버 URL을 포함하는 프로퍼티 정보.
- Throws:
LiveException
sendMessage
public void sendMessage()
throws LiveException
QueueSender 객체를 사용하여 메세지를 전송한다.
- Specified by:
sendMessage in interface JMSMessageProducer
- Throws:
LiveException - 메세지 전송에 실패한 경우.
Copyright © 2014. All Rights Reserved.