<?xml version="1.0"?>
<!-- 
    File       	: ConnectionManager.xml
    Authors    	: Fiorano MQ Team
    Version    	: 1.0
    (c) 1998-2001 Fiorano Software Inc, 
    All rights reserved.

    Description : This DTD defines the types of admin and client connections that can be set up on 
    the MQServer and their other attributes like the URL number, mode of connection SSL/TCP, the 
    connection manager that is to be used by the Connection (def/cseleft/ms) and if the connection  
    is an SSL one the securitymanager to be used by this connection. This eliminates the need for 
    a client using MQ to make a CustomServer to start a SSL server also. The end user would just 
    have to implement his own securityManager and this would be instantiated and setup by the server.

Revision History :  Ver 1.1 - March 2001.
-->

<!DOCTYPE FMQConnectionFactories[
<!ELEMENT FMQConnectionFactories  (ClientConnectionFactories , AdminConnectionFactories? )>
<!ELEMENT ClientConnectionFactories  (ConnectionFactoryInfo+ )>
<!ELEMENT AdminConnectionFactories  (ConnectionFactoryInfo+ )>
<!ELEMENT ConnectionFactoryInfo  (URL , SSLVendor? , SecurityManager? , ConnectionManager , ConnectionFactoryName+ )>
<!ATTLIST ConnectionFactoryInfo  type  (TCP | PHAOS_SSL | SUN_SSL | OTHER )  'TCP' >
<!ELEMENT URL  (#PCDATA )>
<!ELEMENT SSLVendor  (#PCDATA )>
<!ELEMENT SecurityManager  (#PCDATA )>

<!ELEMENT ConnectionFactoryName  (#PCDATA )>
<!ATTLIST ConnectionFactoryName  fmq_type  (TOPIC | QUEUE | ADMIN )  'TOPIC' >
<!ELEMENT ConnectionManager  (ClassName , SelectorCount? , FallBack? , ControlSockets? , DummySockets? , DefaultFDSetSize? , JobManagerInfo? )>
<!ATTLIST ConnectionManager  type  (SS | MS )  'SS' >
<!ELEMENT JobManagerInfo  (ClassName )>
<!ATTLIST JobManagerInfo  MinThreads CDATA  '4'
                          MaxThreads CDATA  '20'
                          Priority   CDATA  '5' >
<!ELEMENT ClassName  (#PCDATA )>
<!ELEMENT SelectorCount  (#PCDATA )>
<!ELEMENT FallBack  (#PCDATA )>
<!ATTLIST FallBack  type  (DEF | CSEL | CPOLL )  'DEF' >
<!ELEMENT ControlSockets  (UDPSocket+ )>
<!ELEMENT DummySockets  (UDPSocket+ )>
<!ELEMENT DefaultFDSetSize  (#PCDATA )>
<!ELEMENT UDPSocket  (#PCDATA )>
]>


<!-- 
FMQConnectionFactories is a list of ConnectionFactories which could be set up on the server. 
This xml illustrates how MQserver can be setup to accept non-secure connections on port 1856
Topic  connections are served using the Topic Connection Factory "primaryTCF" and "SecondaryTCF".
Queue connections are served using the Topic Connection Factory "primaryQCF" and "SecondaryQCF".

Admin connections are also non-secure and are made on port 1857. All Adminconnections
are served using AdminConnectionFactory "primaryACF".


To start the MQServer on a different port modify localhost:1856 to appropriate local port
(like localhost:2001). Similarly to start MQServer to accept Admin Connections on different port modify
localhost:1857 to appropriate local port (like localhost:2002)
-->
<FMQConnectionFactories>
	<ClientConnectionFactories>
		<ConnectionFactoryInfo>
			<URL>http://localhost:1856</URL>
                        <ConnectionManager>
                              <ClassName>fiorano.jms.cm.def.SocketReadHandlerDefImpl</ClassName>
                        </ConnectionManager>
                        <ConnectionFactoryName fmq_type='TOPIC'>primaryTCF</ConnectionFactoryName>
                        <ConnectionFactoryName fmq_type='TOPIC'>secondaryTCF</ConnectionFactoryName>
                        <ConnectionFactoryName fmq_type='QUEUE'>primaryQCF</ConnectionFactoryName>
                        <ConnectionFactoryName fmq_type='QUEUE'>secondaryQCF</ConnectionFactoryName>

                 </ConnectionFactoryInfo>

        </ClientConnectionFactories>


	<AdminConnectionFactories>
    	       <ConnectionFactoryInfo>
	           <URL>http://localhost:1857</URL>						
                   <ConnectionManager>
                       <ClassName> fiorano.jms.cm.def.SocketReadHandlerDefImpl</ClassName>
                   </ConnectionManager>			
		   <ConnectionFactoryName fmq_type='ADMIN'>primaryACF</ConnectionFactoryName>
		</ConnectionFactoryInfo>
	</AdminConnectionFactories>
</FMQConnectionFactories>
