|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JMSMessageProducer
Queue나 Topic 방식의 메세지를 생성하기 위한 Producer 클래스를 정의하기 위한 인터페이스.
| Method Summary | |
|---|---|
void |
commitSession()
|
void |
initResource(String jndiName,
String destination,
String jmsEngine,
Properties env)
주어진 파라미터 정보들을 기반으로 JMS 서비스와 관련된 리소스들을 초기화시킨다. |
void |
releaseResource()
메세지 전송 후 리소스를 해지한다. |
void |
rollbackSession()
|
void |
sendMessage()
메세지를 전송한다. |
void |
setMessage(String msgKey,
String textMsg)
메세지를 설정한다. |
void |
setMessageType(String msgType)
|
void |
startConnection()
initResource()에서 초기화된 정보들을 기반으로 커넥션을 수행한다. |
| Method Detail |
|---|
void initResource(String jndiName,
String destination,
String jmsEngine,
Properties env)
throws LiveException
주어진 파라미터 정보들을 기반으로 JMS 서비스와 관련된 리소스들을 초기화시킨다.
jndiName - 커넥션 팩토리 타입에 대한 JNDI 네임.destination - JMS 메시지를 수신할 데스티네이션 이름.env - 컨텍스트 팩토리정보돠 JMS 서버 URL을 포함하는 프로퍼티 정보.
LiveException
void startConnection()
throws LiveException
initResource()에서 초기화된 정보들을 기반으로 커넥션을 수행한다.
LiveException
void releaseResource()
throws LiveException
메세지 전송 후 리소스를 해지한다.
LiveException
void setMessage(String msgKey,
String textMsg)
throws LiveException
메세지를 설정한다.
textMsg - 전송될 메세지
LiveException
void sendMessage()
throws LiveException
메세지를 전송한다.
LiveException
void setMessageType(String msgType)
throws LiveException
LiveException
void commitSession()
throws LiveException
LiveException
void rollbackSession()
throws LiveException
LiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||