qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhaoyi0113@gmail.com" <zhaoyi0...@gmail.com>
Subject Re: Run qpid 0.6 broker error in Linux
Date Mon, 13 Sep 2010 02:11:01 GMT

This is my config.xml file. It works fine in Window XP but failed on Linux.

<broker>
    <prefix>${QPID_HOME}</prefix>
    <work>${QPID_WORK}</work>
    <conf>${prefix}/etc</conf>
    <connector>
        <!-- To enable SSL edit the keystorePath and keystorePassword
	     and set enabled to true. 
             To disasble Non-SSL port set sslOnly to true -->
        <ssl>
            <enabled>false</enabled>
            <sslOnly>false</sslOnly>
            <keystorePath>/path/to/keystore.ks</keystorePath>
            <keystorePassword>keystorepass</keystorePassword>
        </ssl>
        <qpidnio>false</qpidnio>
        <protectio>
            <enabled>false</enabled>
            <readBufferLimitSize>262144</readBufferLimitSize>
            <writeBufferLimitSize>262144</writeBufferLimitSize>	    
        </protectio>
        <transport>nio</transport>
        <port>5673</port>
        <sslport>8672</sslport>
        <socketReceiveBuffer>32768</socketReceiveBuffer>
        <socketSendBuffer>32768</socketSendBuffer>
    </connector>
    <management>
        <enabled>true</enabled>
        <jmxport>8999</jmxport>
        <ssl>
            <enabled>true</enabled>
            <!-- Update below path to your keystore location, eg
${conf}/qpid.keystore  -->
            <keyStorePath>${prefix}/etc/keystore.jks</keyStorePath>
            <keyStorePassword>password</keyStorePassword>
        </ssl>
    </management>
    <advanced>
        <filterchain enableExecutorPool="true"/>
        <enablePooledAllocator>false</enablePooledAllocator>
        <enableDirectBuffers>false</enableDirectBuffers>
        <framesize>65535</framesize>
        <compressBufferOnQueue>false</compressBufferOnQueue>
        <enableJMSXUserID>false</enableJMSXUserID>
        <locale>en_US</locale>	
    </advanced>

    <security>
        <principal-databases>
            <!-- Example use of Base64 encoded MD5 hashes for authentication
via CRAM-MD5-Hashed -->
            <principal-database>
                <name>passwordfile</name>
               
<class>org.apache.qpid.server.security.auth.database.PlainPasswordFilePrincipalDatabase</class>
                <attributes>
                    <attribute>
                        <name>passwordFile</name>
                        <value>${conf}/passwd</value>
                    </attribute>
                </attributes>
            </principal-database>
        </principal-databases>

        <access>
           
<class>org.apache.qpid.server.security.access.plugins.AllowAll</class>
        </access>
        
        <msg-auth>false</msg-auth>
        
        <jmx>
            <access>${conf}/jmxremote.access</access>
            <principal-database>passwordfile</principal-database>
        </jmx>
    </security>

    <virtualhosts>

        <default>test</default>
        <virtualhost>
            <name>localhost</name>
            <localhost>
                <store>
                    <class>org.apache.qpid.server.store.MemoryMessageStore
                    </class>
                </store>

                <housekeeping>
                   
<expiredMessageCheckPeriod>20000</expiredMessageCheckPeriod>
                </housekeeping>

                <exchanges>
                    <exchange>
                        <type>direct</type>
                        <name>test.direct</name>
                        <durable>true</durable>
                    </exchange>
                    <exchange>
                        <type>topic</type>
                        <name>test.topic</name>
                    </exchange>
                </exchanges>
                <queues>
                    <exchange>amq.direct</exchange>
                    <maximumQueueDepth>4235264</maximumQueueDepth>
                    <!-- 4Mb -->
                    <maximumMessageSize>2117632</maximumMessageSize>
                    <!-- 2Mb -->
                    <maximumMessageAge>600000</maximumMessageAge>
                    <!-- 10 mins -->
                    <maximumMessageCount>50</maximumMessageCount>
                    <!-- 50 messages -->

                    <queue>
                        <name>queue</name>
                    </queue>
                    <queue>
                        <name>ping</name>
                    </queue>
                    <queue>
                        <name>test-queue</name>
                        <test-queue>
                            <exchange>test.direct</exchange>
                            <durable>true</durable>
                        </test-queue>
                    </queue>
                    <queue>
                        <name>test-ping</name>
                        <test-ping>
                            <exchange>test.direct</exchange>
                        </test-ping>
                    </queue>

                </queues>
            </localhost>
        </virtualhost>


        <virtualhost>
            <name>development</name>
            <development>
                <store>
                    <class>org.apache.qpid.server.store.MemoryMessageStore
                    </class>
                </store>

                <queues>
                    <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
                    <maximumMessageCount>50</maximumMessageCount>
                    <queue>
                        <name>queue</name>
                        <queue>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                            <!-- 4Mb -->
                            <maximumMessageSize>2117632</maximumMessageSize>
                            <!-- 2Mb -->
                            <maximumMessageAge>600000</maximumMessageAge>
                            <!-- 10 mins -->
                        </queue>
                    </queue>
                    <queue>
                        <name>ping</name>
                        <ping>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                            <!-- 4Mb -->
                            <maximumMessageSize>2117632</maximumMessageSize>
                            <!-- 2Mb -->
                            <maximumMessageAge>600000</maximumMessageAge>
                            <!-- 10 mins -->
                        </ping>
                    </queue>
                </queues>
            </development>
        </virtualhost>
        <virtualhost>
            <name>test</name>
            <test>
                <store>
                    <class>org.apache.qpid.server.store.MemoryMessageStore
                    </class>
                </store>

                <queues>
                    <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
                    <maximumMessageCount>50</maximumMessageCount>
                    <queue>
                        <name>queue</name>
                        <queue>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                            <!-- 4Mb -->
                            <maximumMessageSize>2117632</maximumMessageSize>
                            <!-- 2Mb -->
                            <maximumMessageAge>600000</maximumMessageAge>
                            <!-- 10 mins -->
                        </queue>
                    </queue>
                    <queue>
                        <name>ping</name>
                        <ping>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                            <!-- 4Mb -->
                            <maximumMessageSize>2117632</maximumMessageSize>
                            <!-- 2Mb -->
                            <maximumMessageAge>600000</maximumMessageAge>
                            <!-- 10 mins -->
                        </ping>
                    </queue>
                </queues>
            </test>
        </virtualhost>
    </virtualhosts>
    <heartbeat>
        <delay>0</delay>
        <timeoutFactor>2.0</timeoutFactor>
    </heartbeat>
    <queue>
        <auto_register>true</auto_register>
    </queue>

    <status-updates>ON</status-updates>

</broker>



-- 
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Run-qpid-0-6-broker-error-in-Linux-tp5517015p5524788.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message