kr.co.hit.live.jms
Class TopicMessagePublisher

java.lang.Object
  extended by kr.co.hit.live.jms.BaseMessageProducer
      extended by kr.co.hit.live.jms.TopicMessagePublisher
All Implemented Interfaces:
JMSMessageProducer

public class TopicMessagePublisher
extends BaseMessageProducer
implements JMSMessageProducer

Topic 방식으로 메세지를 처리하기위한 Publisher 클래스.

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
TopicMessagePublisher()
           
 
Method Summary
 void initResource(String jmsFactoryName, String destination, String jmsEngine, Properties env)
          

주어진 파라미터 정보들을 기반으로 JMS 서비스와 관련된 리소스들을 초기화시킨다.

 void sendMessage()
          

TopicPublisher 객체를 사용하여 메세지를 전송한다.

 
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

TopicMessagePublisher

public TopicMessagePublisher()
Method Detail

initResource

public void initResource(String jmsFactoryName,
                         String destination,
                         String jmsEngine,
                         Properties env)
                  throws LiveException

주어진 파라미터 정보들을 기반으로 JMS 서비스와 관련된 리소스들을 초기화시킨다.

Specified by:
initResource in interface JMSMessageProducer
Parameters:
jmsFactoryName - 커넥션 팩토리 타입에 대한 JNDI 네임.
destination - JMS 메시지를 수신할 데스티네이션 이름.
env - 컨텍스트 팩토리정보돠 JMS 서버 URL을 포함하는 프로퍼티 정보.
Throws:
LiveException

sendMessage

public void sendMessage()
                 throws LiveException

TopicPublisher 객체를 사용하여 메세지를 전송한다.

Specified by:
sendMessage in interface JMSMessageProducer
Throws:
LiveException - 메세지 전송에 실패한 경우.


Copyright © 2014. All Rights Reserved.