Example 1 Output

$ java org.openadaptor.spring.SpringAdaptor -config simpleExample.xml
[20080211 10:39:59] INFO  [main  ] [CollectionFactory] JDK 1.4+ collections available
[20080211 10:39:59] INFO  [main  ] [CollectionFactory] Commons Collections 3.x available
[20080211 10:39:59] INFO  [main  ] [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [org/openadaptor/spring/.openadaptor-spring.xml]
[20080211 10:40:00] INFO  [main  ] [XmlBeanDefinitionReader] Loading XML bean definitions from URL [file:simpleExample.xml]
[20080211 10:40:00] INFO  [main  ] [GenericApplicationContext] 6 beans defined in application context [org.springframework.context.support.GenericApplicationContext;hashCode=31476927]
[20080211 10:40:00] INFO  [main  ] [GenericApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@ba5c7a]
[20080211 10:40:00] INFO  [main  ] [GenericApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@340101]
[20080211 10:40:00] INFO  [main  ] [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [adaptor,servlet,toXmlConverter,consoleWriter,org.openadaptor.core.jmx.
MBeanServer,openadaptorAutoGeneratedSystemPropertyConfigurer]; root of BeanFactory hierarchy]

 Copyright (C) 2001 - 2008 The Software Conservancy as Trustee. All rights reserved.

 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in the
 Software without restriction, including without limitation the rights to use, copy,
 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
 and to permit persons to whom the Software is furnished to do so, subject to the
 following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 Nothing in this notice shall be deemed to grant any rights to trademarks, copyrights,
 patents, trade secrets or any other intellectual property of the licensor or any
 contributor except as expressly stated herein. No patent license is granted separate
 from the Software, for code that you delete from the Software, or for combinations
 of the Software with other software or hardware.

[20080211 10:40:00] INFO  [main  ] [Application] classpath = c:\openadaptor-3.4\lib;c:\openadaptor-3.4\lib\openadaptor.j
ar;c:\openadaptor-3.4\lib\openadaptor-depends.jar;c:\openadaptor-3.4\lib\openadaptor-spring.jar
[20080211 10:40:00] INFO  [main  ] [Application] java.version = 1.5.0_12
[20080211 10:40:00] INFO  [main  ] [Application] openadaptor.build.tag = 3.4
[20080211 10:40:00] INFO  [main  ] [Application] openadaptor.build.compiler = 1.4
[20080211 10:40:00] INFO  [main  ] [Application] openadaptor.build.timestamp = 20080131:1615
[20080211 10:40:00] INFO  [main  ] [MBeanServer] Getting MBeanServer
(note: Http server will not start unless property 'port' is configured)
[20080211 10:40:00] INFO  [main  ] [JVMNeutralMBeanServerFactory] Getting MBeanServer [for jvm 1.5.0_12]
[20080211 10:40:01] INFO  [main  ] [MBeanServer] Registering MBean for htmlAdaptorServer with name jmx:id=http
[20080211 10:40:01] INFO  [main  ] [MBeanServer] starting jmx http adaptor on port 8082
[20080211 10:40:01] INFO  [main  ] [SpringApplication] registered bean Config
[20080211 10:40:01] INFO  [main  ] [SpringApplication] registered bean adaptor
[20080211 10:40:01] INFO  [main  ] [SpringApplication] registered bean servlet
[20080211 10:40:01] INFO  [main  ] [SpringApplication] registered bean toXmlConverter
[20080211 10:40:01] INFO  [main  ] [SpringApplication] registered bean consoleWriter
[20080211 10:40:01] INFO  [adaptor] [AbstractRouter] consoleWriter registered with null
[20080211 10:40:01] INFO  [adaptor] [AbstractRouter] toXmlConverter registered with null
[20080211 10:40:01] INFO  [adaptor] [AbstractRouter] servlet registered with null
[20080211 10:40:01] INFO  [adaptor] [LifecycleComponent] consoleWriter started
[20080211 10:40:01] INFO  [adaptor] [LifecycleComponent] toXmlConverter started
[20080211 10:40:01] INFO  [adaptor] [ServletServingReadConnector] Starting servlet container org.openadaptor.auxil.connector.http.ServletContainer@458f41
[20080211 10:40:01] INFO  [adaptor] [ServletContainer] Starting Jetty server on port 9999
2008-02-11 10:40:01.196::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2008-02-11 10:40:01.196::INFO:  jetty-6.0.x
2008-02-11 10:40:01.227::INFO:  Started SocketConnector @ 0.0.0.0:9999
[20080211 10:40:01] INFO  [adaptor] [ReadConnectorServlet] servlet added servlet http://mypc:9999/*
[20080211 10:40:01] INFO  [adaptor] [LifecycleComponent] servlet started
[20080211 10:40:01] INFO  [adaptor] [Application] property, adaptorid=adaptor
[20080211 10:40:01] INFO  [adaptor] [Application] property, adaptorname=adaptor
[20080211 10:40:01] INFO  [adaptor] [Application] property, additionaldetails=<unknown>
[20080211 10:40:01] INFO  [adaptor] [Application] property, hostname=mypc
[20080211 10:40:01] INFO  [adaptor] [Application] property, installdir=c:\openadaptor-3.4\example\spring\demo
[20080211 10:40:01] INFO  [adaptor] [Application] property, ipaddress=192.168.1.10
[20080211 10:40:01] INFO  [adaptor] [Application] property,javaclasspath=c:\openadaptor-3.4\lib;c:\openadaptor-3.4\lib\
openadaptor.jar;c:\openadaptor-3.4\lib\openadaptor-depends.jar;c:\openadaptor-3.4\lib\openadaptor-spring.jar
[20080211 10:40:01] INFO  [adaptor] [Application] property, javaversion=1.5.0_12-b04
[20080211 10:40:01] INFO  [adaptor] [Application] property, oaversion=3.4
[20080211 10:40:01] INFO  [adaptor] [Application] property, osname=Windows XP
[20080211 10:40:01] INFO  [adaptor] [Application] property, osversion=5.1
[20080211 10:40:01] INFO  [adaptor] [Application] property, propertiesfile=simpleExample.xml
[20080211 10:40:01] INFO  [adaptor] [Application] property, username=johndoe
[20080211 10:40:01] INFO  [adaptor] [Adaptor] waiting for runnables to stop
[20080211 10:40:01] INFO  [servlet] [ReadNode] servlet running
<xml version="1.0" encoding="ISO-8859-1"/>
<Trade>
<buySell>BUY</buySell>
<ticker>XYZ</ticker>
<price>100</price>
</Trade>


Example 2 Output

$ java org.openadaptor.spring.SpringAdaptor -config advancedExample.xml
[20080211 10:48:41] INFO  [main  ] [CollectionFactory] JDK 1.4+ collections available
[20080211 10:48:41] INFO  [main  ] [CollectionFactory] Commons Collections 3.x available
[20080211 10:48:41] INFO  [main  ] [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [org/openadaptor/spring/.openadaptor-spring.xml]
[20080211 10:48:42] INFO  [main  ] [XmlBeanDefinitionReader] Loading XML bean definitions from URL [file:advancedExample.xml]
[20080211 10:48:42] INFO  [main  ] [GenericApplicationContext] 14 beans defined in application context [org.springframework.context.support.GenericApplicationContext;hashCode=31476927]
[20080211 10:48:42] INFO  [main  ] [GenericApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1b1fbf4]
[20080211 10:48:42] INFO  [main  ] [GenericApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@180f96c]

[20080211 10:48:42] INFO  [main  ] [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [Adaptor,reader,throttlingReader,orderedmap,jsFilter,dbReader,jdbcConnection,dbBasedEnhancer,jndiConnection,jmsConnection,jmsPublisher,writer,exceptionWriter,openadaptorAutoGeneratedSystemPropertyConfigurer]; root of BeanFactory hierarchy]

 Copyright (C) 2001 - 2008 The Software Conservancy as Trustee. All rights reserved.

 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in the
 Software without restriction, including without limitation the rights to use, copy,
 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
 and to permit persons to whom the Software is furnished to do so, subject to the
 following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 Nothing in this notice shall be deemed to grant any rights to trademarks, copyrights,
 patents, trade secrets or any other intellectual property of the licensor or any
 contributor except as expressly stated herein. No patent license is granted separate
 from the Software, for code that you delete from the Software, or for combinations
 of the Software with other software or hardware.

[20080211 10:48:42] INFO  [main  ] [Application] classpath = c:\openadaptor-3.4\lib;c:\openadaptor-3.4\lib\openadaptor.j
ar;c:\openadaptor-3.4\lib\openadaptor-depends.jar;c:\openadaptor-3.4\lib\
openadaptor-spring.jar;c:\download\jboss\jboss-
4.0.0\client\jbossall-client.jar;c:\openadaptor-3.4\lib/3rdparty/hsqldb.jar
[20080211 10:48:42] INFO  [main  ] [Application] java.version = 1.5.0_12
[20080211 10:48:42] INFO  [main  ] [Application] openadaptor.build.tag = 3.4
[20080211 10:48:42] INFO  [main  ] [Application] openadaptor.build.compiler = 1.4
[20080211 10:48:42] INFO  [main  ] [Application] openadaptor.build.timestamp = 20080131:1615
[20080211 10:48:42] INFO  [Adaptor] [AbstractRouter] exceptionWriter registered with null
[20080211 10:48:42] INFO  [Adaptor] [AbstractRouter] orderedmap registered with null
[20080211 10:48:42] INFO  [Adaptor] [AbstractRouter] jsFilter registered with null
[20080211 10:48:42] INFO  [Adaptor] [AbstractRouter] throttlingReader registered with null
[20080211 10:48:42] INFO  [Adaptor] [AbstractRouter] jmsPublisher registered with null
[20080211 10:48:42] INFO  [Adaptor] [AbstractRouter] writer registered with null
[20080211 10:48:42] INFO  [Adaptor] [LifecycleComponent] exceptionWriter started
[20080211 10:48:42] INFO  [Adaptor] [LifecycleComponent] orderedmap started
[20080211 10:48:42] INFO  [Adaptor] [LifecycleComponent] jsFilter started
[20080211 10:48:43] INFO  [Adaptor] [JDBCConnection] Connecting to jdbc:hsqldb:hsql://localhost/xdb as sa
[20080211 10:48:43] INFO  [Adaptor] [JMSWriteConnector]  Producer initialised for JMS Destination=SpyMessageProducer@115
13418[ dest=QUEUE.testQueue delivery=persist priority=4 ttl=0 disableMessageID=false disableTS=false session=SpySession@20846071[tx=true txid=-9223372036854775808 RUNNING connection=Connection@31168594[token=ConnectionToken:ID:1/ec160eb060d
9216dfcd3711e0d93eaef rcvstate=STARTED]]]
[20080211 10:48:43] INFO  [Adaptor] [LifecycleComponent] jmsPublisher started
[20080211 10:48:43] INFO  [Adaptor] [LifecycleComponent] writer started
[20080211 10:48:43] INFO  [Adaptor] [LifecycleComponent] throttlingReader started
[20080211 10:48:43] INFO  [Adaptor] [Application] property, adaptorid=Adaptor
[20080211 10:48:43] INFO  [Adaptor] [Application] property, adaptorname=Adaptor
[20080211 10:48:43] INFO  [Adaptor] [Application] property, additionaldetails=<unknown>
[20080211 10:48:43] INFO  [Adaptor] [Application] property, hostname=mypc
[20080211 10:48:43] INFO  [Adaptor] [Application] property, installdir=c:\openadaptor-3.4\example\spring\demo
[20080211 10:48:43] INFO  [Adaptor] [Application] property, ipaddress=192.168.1.10
[20080211 10:48:43] INFO  [Adaptor] [Application] property, javaclasspath=c:\openadaptor-3.4\lib;c:\openadaptor-3.4\lib\
openadaptor.jar;c:\openadaptor-3.4\lib\openadaptor-depends.jar;c:\
openadaptor-3.4\lib\openadaptor-spring.jar;c:\download
\jboss\jboss-4.0.0\client\jbossall-client.jar;c:\openadaptor-3.4\lib/3rdparty/hsqldb.jar
[20080211 10:48:43] INFO  [Adaptor] [Application] property, javaversion=1.5.0_12-b04
[20080211 10:48:43] INFO  [Adaptor] [Application] property, oaversion=3.4
[20080211 10:48:43] INFO  [Adaptor] [Application] property, osname=Windows XP
[20080211 10:48:43] INFO  [Adaptor] [Application] property, osversion=5.1
[20080211 10:48:43] INFO  [Adaptor] [Application] property, propertiesfile=advancedExample.xml
[20080211 10:48:43] INFO  [Adaptor] [Application] property, username=johndoe
[20080211 10:48:43] INFO  [Adaptor] [Adaptor] waiting for runnables to stop
[20080211 10:48:43] INFO  [throttlingReader] [ReadNode] throttlingReader running
[20080211 10:48:45] WARN  [throttlingReader] [AbstractRouter] orderedmap caught 1 exceptions
[20080211 10:48:46] INFO  [throttlingReader] [JDBCReadConnector] Call for next record(s)
OM[username->jonest,fullname->Terry Jones,uniqueid->3,DOB->1960-12-10]
[20080211 10:48:47] INFO  [throttlingReader] [JMSWriteConnector] [jmsPublisher=queue/testQueue] sent message [ JMSMessageID=ID:1-12027269270821] to data connection/service
[20080211 10:48:48] INFO  [throttlingReader] [JDBCReadConnector] Call for next record(s)
OM[username->idlee,fullname->Eric Idle,uniqueid->4,DOB->1985-01-09]
[20080211 10:48:48] INFO  [throttlingReader] [JMSWriteConnector] [jmsPublisher=queue/testQueue] sent message [ JMSMessageID=ID:1-12027269280982] to data connection/service
[20080211 10:48:49] INFO  [throttlingReader] [ReadNode] throttlingReader stopping invoked
[20080211 10:48:49] INFO  [throttlingReader] [ReadNode] throttlingReader is stopping
[20080211 10:48:49] INFO  [throttlingReader] [ReadNode] throttlingReader stop invoked
[20080211 10:48:49] INFO  [throttlingReader] [ReadNode] throttlingReader no longer running
[20080211 10:48:49] INFO  [throttlingReader] [LifecycleComponent] throttlingReader stopped
[20080211 10:48:49] INFO  [Adaptor] [Adaptor] all runnables are stopped
[20080211 10:48:49] INFO  [Adaptor] [LifecycleComponent] exceptionWriter stopped
[20080211 10:48:49] INFO  [Adaptor] [LifecycleComponent] orderedmap stopped
[20080211 10:48:49] INFO  [Adaptor] [LifecycleComponent] jsFilter stopped
[20080211 10:48:49] INFO  [Adaptor] [LifecycleComponent] null stopped
[20080211 10:48:49] INFO  [Adaptor] [LifecycleComponent] jmsPublisher stopped
[20080211 10:48:49] INFO  [Adaptor] [LifecycleComponent] writer stopped