kr.co.hit.live.jms
Class QueueMessageSender

java.lang.Object
  extended by kr.co.hit.live.jms.BaseMessageProducer
      extended by 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:
홍선주(현대정보기술)

Field Summary
 
Fields inherited from class kr.co.hit.live.jms.BaseMessageProducer
connection, connectionFactory, DEFAULT_MESSAGE_KEY, DEFAULT_MESSAGE_KEY_VALUE, destination, DESTINATION_TYPE_QUEUE, DESTINATION_TYPE_TOPIC, message, producer, session
 
Constructor Summary
QueueMessageSender()
           
 
Method Summary
 void initResource(String jmsFactoryName, String dest, String jmsEngine, Properties env)
           주어진 파라미터 정보들을 기반으로 JMS 서비스와 관련된 리소스들을 초기화시킨다.
 void sendMessage()
           QueueSender 객체를 사용하여 메세지를 전송한다.
 
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
 
Methods inherited from interface kr.co.hit.live.jms.JMSMessageProducer
commitSession, releaseResource, rollbackSession, setMessage, setMessageType, startConnection
 

Constructor Detail

QueueMessageSender

public QueueMessageSender()
Method Detail

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.