JFIXClient Configuration

JFIXClient is configured through an XML document. A sample document is included below:
<?xml version="1.0" ?>

<CLIENT>

<!-- General configuration -->

	<Protocol  Version="FIX.4.2" />
	<FIXServer Host="127.0.0.1"  Port="8433" /> 
	
<!-- Logging configuration -->

	<Logging>
		<Log	Name="Dev"
			File="../logs/jfixDev.txt"
			Level="All"
			Console="OFF"
		/>	
		
		<Log	Name="RawLog"
			File="../logs/rawlog.txt"
			Level="All"
			Console="OFF"
			Pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}  %m%n"
		/>		
	</Logging>



<!-- Session configuration -->
	<Session> 
		<Name Value="JFIXClient" />

		<SenderID>
			<FIXTAG Tag="SenderCompID" Value="TEST" />
			<FIXTAG Tag="SenderSubID" Value="SenderSub1" />
		</SenderID>

		<TargetID>
			<FIXTAG Tag="TargetCompID" Value="FIX01" />
			<FIXTAG Tag="TargetSubID" Value="TargetSub1" />	
		</TargetID>

		<PersistenceKey Value="../logs/jfc.dat" />
		<SessionLog File="../logs/sessionlog.txt" EOFChar="~" ExpandTagNames="Yes" />
	</Session>

<!-- Driver configuration -->
	<Driver>
		<URL Value="../config/FIX42Buttons.xml" />
	</Driver>
	
	
<!-- Message templates -->
	<FIXMsgTemplate URL="file:../config/template1.xml" />

</CLIENT>



Tags


CLIENT
Description: This tag represents the "document name". It's worthless, and can actually be any value. For example, you can replace "CLIENT" with "WorthlessSteamingPile".
Attributes: None
Sub-Tags: None


Driver
Description: Specifies the driver for the client.
Attributes:
Sub-Tags:

FIXMsgTemplate
Description: If present specifies a URL used to further configure the driver.
Attributes: None
Sub-Tags:


FIXServer
Description: Specifies the FIX server to which the client should connect.
Attributes: Sub-Tags: None


FIXTag
Description: Binds a value to a particular FIX tag. For example, FIX tag 8 might be bound to "FIX.4.2"
Attributes: Sub-Tags: None


Log
Description: Used to parameterize a particular logger.
Attributes:
Sub-Tags: None


Logging
Description: Used to parameterize the logging subsystem
Attributes: None
Sub-Tags:


PersistenceKey
Description: If present, specifies a string to be used as the persistence key for this session. In the current implementation the key is used as a filename on the local store. Other implementations (or possibly future ones) might interpret the key as something else (such as a database table name)
Attributes: Sub-Tags: None


Protocol
Description: Specifies the version of the FIX protocol that should be used.
Attributes: Sub-Tags: None


SenderID
Description: Specifies the sender identity of the session.
Attributes: None
Sub-Tags:


Session
Description: Used to parameterize the session object. Please note that this set of tags, attributes, and values are designed to work with the standard JFIXClient session objects. Independently written or adapted session objects can be parameterized differently.
Attributes: Sub-Tags:


SessionLog
Description: If present, specifies a configuration for a session log. (See xxx for more information)
Attributes: Sub-Tags: None


TargetID
Description: Specifies the target identity of the session.
Attributes: None
Sub-Tags:


URL
Description: Specifies a URL used to further configure the driver.
Attributes: Sub-Tags: None