달력

012018  이전 다음

  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  
Test Program 개발을 위한 환경 설정
1.       JEUS4.2 설치
(JEUS
http://technet.tmax.co.kr 에서 받으실 수 있습니다.)
2.       JEUSJMS 설정
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
[2005.02.02 12:51:44][2] ExampleTopic have NonDurableSubscribers of 0 and DurableSubscribers of 0
[2005.02.02 12:51:44][2] total message count:0
[2005.02.02 12:51:44][2] [NonDurableSubscriber] total consumers:0
 
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.
Posted by Tornado tornado