Test Program 개발을 위한 환경 설정
2. JEUS에 JMS 설정
A. JEUSMain.xml 파일에 JMS 엔진 설정
<engine-command> <type>jms</type> <name>engine</name> <startup-mode>xml</startup-mode> </engine-command> |
B. JEUSMain.xml 파일 위치에 ‘host_name’_jms_engine 디렉토리 생성
C. ‘host_name’_jms_engine 디렉토리 밑에 다음과 같은 JMSMain.xml 파일 생성
<?xml version="1.0"?> <!DOCTYPE jms-server PUBLIC "-//Tmax Soft, Inc.//DTD JMS Main Config 4.0//EN" "http://www.tmaxsoft.com/jeus/dtd/4.0/jms-main-config.dtd"> <jms-server> <error-log> <level>debug</level> </error-log> <access-log> <target>stdout</target> </access-log> <connection-factory> <type>queue</type> <name>QueueConnectionFactory</name> <export-name>QueueConnectionFactory</export-name> <error-log> <target>stdout</target> <level>debug</level> </error-log> </connection-factory> <connection-factory> <type>Topic</type> <name>TopicConnectionFactory</name> <export-name>TopicConnectionFactory</export-name> <error-log> <target>stdout</target> <level>debug</level> </error-log> </connection-factory> <destination> <type>Queue</type> <name>ExampleQueue</name> <export-name>ExampleQueue</export-name> </destination> <destination> <type>Topic</type> <name>ExampleTopic</name> <export-name>ExampleTopic</export-name> </destination> </jms-server> |
D. JEUS 구동 및 JMS 엔진 실행 확인
sh> jmsadmin ‘host_name’_jms_engine -Uadministrator –P설치시비밀번호 hurukku_jms_engine>serverall [ [ [ number of current client : 0 peak of number of client : 0 total number of thread in server : 5 number of running thread in server : 0 total memory in server JVM : 6225920 free memory in server JVM : 2908104 Specific threadpool information : poolName : JMSServer isDaemon: true allowIncrease: false reserveExcess: true increaseFactor: 3 prepareInitial: true initial_thread_count: 5 idleTime_forNotInitial: 120000 idleTime_forInitial: 0 maximum_size: 10 threadId: 5 pool_size: 5 worksTodo: 0 Type of ErrorLog : CONSOLE Level of ErrorLog : DEBUG BufferSize of ErrorLog : 4096 Period to change ErrorLog File (day) : -1 Type of AccessLog : CONSOLE BufferSize of AccessLog : 4096 Period to change AccessLog File (day) : No Change File Client information ------------------ No client is connected to Server ConnectionFactory information ----------------------------- [1] Name of ConnectionFactory : QueueConnectionFactory JNDI name of ConnectionFactory : QueueConnectionFactory ClientID of ConnectionFactory : null MaxSessionThreadNumber of ConnectionFactory : 5 [2] Name of ConnectionFactory : TopicConnectionFactory JNDI name of ConnectionFactory : TopicConnectionFactory ClientID of ConnectionFactory : null MaxSessionThreadNumber of ConnectionFactory : 5 Destination information ----------------------- [1] Destination Type : Queue Name of Destination : ExampleQueue JNDI name of Destination : ExampleQueue Client information that is consuming this destination ----------------------------------------------------- No client is consuming this destination. number of messages remained in Queue : 0 [2] Destination Type : Topic Name of Destination : ExampleTopic JNDI name of Destination : ExampleTopic Client information that is consuming this destination ----------------------------------------------------- No client is consuming this destination. number of messages remained in Topic : 0 DurableSubscriber information that is registered to this destination -------------------------------------------------------------------- No Durable Subscriber is registered this destination. |
'JAVA > JEE' 카테고리의 다른 글
[엠파스 펌][스크랩] Starting Java Messaging System - 4 (0) | 2005.06.03 |
---|---|
[엠파스 펌][스크랩] Starting Java Messaging System - 3 (0) | 2005.06.03 |
[엠파스 펌][스크랩] Starting Java Messaging System - 1 (0) | 2005.06.03 |
[펌] mastering j2ee application development (0) | 2005.05.23 |
[엠파스 블로그에서 펌]허거덩.. 열라조타~ (0) | 2005.04.25 |