Sample adapter configuration file for the Socket XML Output adapter.
<?xml version="1.0" encoding="utf-8"?> <Adapter> <Name>socket_xmllist_output</Name> <Description>An adapter which transforms ESP data to xml list format, and output the data to socket server.</Description> <Log4jProperty>./log4j.properties</Log4jProperty> <Modules> <Module type="espconnector"> <InstanceName>MyOutStream_Subscriber</InstanceName> <Name>EspSubscriber</Name> <Next>XmlListOutputFormatter</Next> <Parameters> <EspSubscriberParameters> <ProjectName>EspProject2</ProjectName> <StreamName>BaseOutput</StreamName> </EspSubscriberParameters> </Parameters> </Module> <Module type="formatter"> <InstanceName>XmlListOutputFormatter</InstanceName> <Name>EspToXmlStringFormatter</Name> <Next>StreamingOutputFormatter</Next> <Parallel>true</Parallel> <Parameters> </Parameters> </Module> <Module type="formatter"> <InstanceName>StreamingOutputFormatter</InstanceName> <Name>StringToStreamFormatter</Name> <Next>MySocketOutTransporter</Next> <Parameters> <StringToStreamFormatterParameters> <Delimiter>\n</Delimiter> <IncludeDelimiter>true</IncludeDelimiter> <AppendString>\n</AppendString> <AppendPosition>end</AppendPosition> <IgnoreSpace>true</IgnoreSpace> <CharsetName>US-ASCII</CharsetName> </StringToStreamFormatterParameters> </Parameters> </Module> <Module type="transporter"> <InstanceName>MySocketOutTransporter</InstanceName> <Name>SocketOutputTransporter</Name> <Parameters> <SocketOutputTransporterParameters> <Host>localhost</Host> <Port>9996</Port> <EpFile></EpFile> <Retryperiod>10</Retryperiod> <KeepAlive>true</KeepAlive> </SocketOutputTransporterParameters> </Parameters> </Module> </Modules> <EspProjects> <EspProject> <Name>EspProject2</Name> <Uri>esp://localhost:19011/sample_workspace/socket_xmllist_output</Uri> <Security> <User></User> <Password encrypted="false"></Password> <AuthType>user_password</AuthType> </Security> </EspProject> </EspProjects> <GlobalParameters></GlobalParameters> </Adapter>