Launching OMS from Eclipse

4 messages Options
Embed this post
Permalink
Lee Figgest

Launching OMS from Eclipse

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Launching OMS from Eclipse

All,

I would appreciate some help with launching OMS from Eclipse. I don't appear to make a valid connection to the data source and it's probably a config error but I have tried everything I can think of.

Here is the log output:

Initialized top-level logger mktctrRoot.
00:10:43,531 [main] INFO  CollectionFactory - JDK 1.4+ collections available
00:10:43,609 [main] INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [quickfixj.xml]

00:10:44,515 [main] INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [message-modifiers.xml]

00:10:44,578 [main] INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [order-limits.xml]

00:10:44,734 [main] INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [oms.xml]
00:10:44,828 [main] INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [oms-shared.xml]

00:10:44,937 [main] INFO  DefaultListableBeanFactory - Overriding bean definition for bean 'fixMessageFactory': replacing [Root bean: class [null]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=fixVersionEnum; factoryMethodName=getMessageFactory; initMethodName=null; destroyMethodName=null; defined in class path resource [quickfixj.xml]] with [Root bean: class [null]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=fixVersionEnum; factoryMethodName=getMessageFactory; initMethodName=null; destroyMethodName=null; defined in class path resource [oms-shared.xml]]

00:10:44,937 [main] INFO  ApplicationBase$1 - Bean factory for application context [org.marketcetera.core.ApplicationBase$1;hashCode=11631043]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jdbcLogFactory,screenLogFactory,slf4jLogFactory,sessionSettings,messageStoreFactory,fixMessageFactory,messageFactory,qfApplication,socketInitiator,defaultMessageModifier,orderRouting,orderLimits,broker,requestQueue,replyTopic,connectionFactory,outgoingJmsTemplate,quickfixSender,defaultSessionID,fixVersionEnum,fixDictionaryPath,socketConnectHostValue,socketConnectPortValue,listener,container,pooledConnectionFactory,outgoingMessageHandler,fixVersion,fixDataDictionaryMgr]; root of BeanFactory hierarchy

00:10:44,937 [main] INFO  ApplicationBase$1 - 29 beans defined in application context [org.marketcetera.core.ApplicationBase$1;hashCode=11631043]

00:10:45,046 [main] INFO  ApplicationBase$1 - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@fd68b1]

00:10:45,046 [main] INFO  ApplicationBase$1 - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1d009b4]

00:10:45,046 [main] INFO  DefaultListableBeanFactory - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jdbcLogFactory,screenLogFactory,slf4jLogFactory,sessionSettings,messageStoreFactory,fixMessageFactory,messageFactory,qfApplication,socketInitiator,defaultMessageModifier,orderRouting,orderLimits,broker,requestQueue,replyTopic,connectionFactory,outgoingJmsTemplate,quickfixSender,defaultSessionID,fixVersionEnum,fixDictionaryPath,socketConnectHostValue,socketConnectPortValue,listener,container,pooledConnectionFactory,outgoingMessageHandler,fixVersion,fixDataDictionaryMgr]; root of BeanFactory hierarchy]

00:10:49,906 [main] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Session FIX.4.2:MRKTC-OMS->MRKTC-EXCH schedule is daily, 00:00:00 UTC - 00:00:00 UTC (daily, 00:00:00 UTC - 00:00:00 UTC)

00:10:49,906 [main] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Created session: FIX.4.2:MRKTC-OMS->MRKTC-EXCH
00:10:51,000 [main] INFO  XBeanXmlBeanDefinitionReader - Loading XML bean definitions from class path resource [broker.xml]

00:10:51,281 [main] INFO  ResourceXmlApplicationContext - Bean factory for application context [org.apache.xbean.spring.context.ResourceXmlApplicationContext;hashCode=29616570]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer,org.apache.activemq.xbean.XBeanBrokerService]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jdbcLogFactory,screenLogFactory,slf4jLogFactory,sessionSettings,messageStoreFactory,fixMessageFactory,messageFactory,qfApplication,socketInitiator,defaultMessageModifier,orderRouting,orderLimits,broker,requestQueue,replyTopic,connectionFactory,outgoingJmsTemplate,quickfixSender,defaultSessionID,fixVersionEnum,fixDictionaryPath,socketConnectHostValue,socketConnectPortValue,listener,container,pooledConnectionFactory,outgoingMessageHandler,fixVersion,fixDataDictionaryMgr]; root of BeanFactory hierarchy

00:10:51,281 [main] INFO  ResourceXmlApplicationContext - 2 beans defined in application context [org.apache.xbean.spring.context.ResourceXmlApplicationContext;hashCode=29616570]

00:10:51,312 [main] INFO  ResourceXmlApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@17c2891]

00:10:51,312 [main] INFO  ResourceXmlApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@4b82d2]

00:10:51,312 [main] INFO  DefaultListableBeanFactory - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer,org.apache.activemq.xbean.XBeanBrokerService]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jdbcLogFactory,screenLogFactory,slf4jLogFactory,sessionSettings,messageStoreFactory,fixMessageFactory,messageFactory,qfApplication,socketInitiator,defaultMessageModifier,orderRouting,orderLimits,broker,requestQueue,replyTopic,connectionFactory,outgoingJmsTemplate,quickfixSender,defaultSessionID,fixVersionEnum,fixDictionaryPath,socketConnectHostValue,socketConnectPortValue,listener,container,pooledConnectionFactory,outgoingMessageHandler,fixVersion,fixDataDictionaryMgr]; root of BeanFactory hierarchy]

00:10:52,375 [main] INFO  BrokerService - ActiveMQ 4.1.0-incubator JMS Message Broker (OMS_BROKER) is starting
00:10:52,375 [main] INFO  BrokerService - For help or more information please see: http://incubator.apache.org/activemq/

00:10:52,593 [SocketConnectorIoProcessor-0.0] INFO  InitiatorIoHandler - MINA session created: /192.168.0.2:4167
00:10:53,687 [QFJ Timer] INFO  outgoing - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: 8=FIX.4.29=8035=A34=149=MRKTC-OMS52=20071116-00:10:53.53156=MRKTC-EXCH98=0108=30141=Y10=144

00:10:53,812 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Initiated logon request
00:10:54,046 [JMX connector] INFO  ManagementContext - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

00:10:54,109 [SocketConnectorIoProcessor-0.0] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting
00:10:54,156 [main] INFO  TransportServerThreadSupport - Listening for connections at: tcp://FIGGESTL:61616
00:10:54,203 [main] INFO  TransportConnector - Connector tcp://localhost:61616 Started
00:10:54,218 [main] INFO  BrokerService - ActiveMQ JMS Message Broker (OMS_BROKER, ID:FIGGESTL-4173-1195171853031-0:0) started

16-Nov-2007 00:10:56 org.apache.commons.i18n.ResourceBundleMessageProvider getText
WARNING: No message entries found for bundle with key oms.connecting_to
00:10:56,796 [main] INFO  OrderManagementSystem - OMS is connecting to exchange.marketcetera.com:7001.
00:11:08,109 [SocketConnectorIoProcessor-0.0] INFO  InitiatorIoHandler - MINA session created: /192.168.0.2:4180
00:11:08,812 [QFJ Timer] INFO  outgoing - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: 8=FIX.4.29=8035=A34=149=MRKTC-OMS52=20071116-00:11:08.79656=MRKTC-EXCH98=0108=30141=Y10=158

00:11:08,812 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Initiated logon request
00:11:09,015 [SocketConnectorIoProcessor-0.0] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting
00:11:23,328 [SocketConnectorIoProcessor-0.0] INFO  InitiatorIoHandler - MINA session created: /192.168.0.2:4188
00:11:23,812 [QFJ Timer] INFO  outgoing - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: 8=FIX.4.29=8035=A34=149=MRKTC-OMS52=20071116-00:11:23.79656=MRKTC-EXCH98=0108=30141=Y10=155

00:11:23,812 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Initiated logon request
00:11:24,078 [SocketConnectorIoProcessor-0.0] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting
00:11:38,562 [SocketConnectorIoProcessor-0.0] INFO  InitiatorIoHandler - MINA session created: /192.168.0.2:4191
00:11:38,812 [QFJ Timer] INFO  outgoing - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: 8=FIX.4.29=8035=A34=149=MRKTC-OMS52=20071116-00:11:38.79656=MRKTC-EXCH98=0108=30141=Y10=161

00:11:38,812 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Initiated logon request
00:11:39,140 [SocketConnectorIoProcessor-0.0] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting
00:11:53,796 [SocketConnectorIoProcessor-0.0] INFO  InitiatorIoHandler - MINA session created: /192.168.0.2:4194
00:11:53,906 [QFJ Timer] INFO  outgoing - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: 8=FIX.4.29=8035=A34=149=MRKTC-OMS52=20071116-00:11:53.79656=MRKTC-EXCH98=0108=30141=Y10=158

00:11:53,906 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Initiated logon request
00:11:54,140 [SocketConnectorIoProcessor-0.0] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting

Any help would be appreciated.

Lee


_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
toli

Re: Launching OMS from Eclipse

Reply Threaded More More options
Print post
Permalink
Lee,

Apologies for taking a while to reply to your email - this got buried
in the spam folder since you sent this to the dev list without
subscribing to it.

> I would appreciate some help with launching OMS from Eclipse. I don't appear
> to make a valid connection to the data source and it's probably a config
> error but I have tried everything I can think of.
>
> 00:11:53,906 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH:
> Initiated logon request
> 00:11:54,140 [SocketConnectorIoProcessor-0.0] INFO  event -
> FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting

The problem is that you are using the generic senderCompID (MRKTC-OMS)
to connect. The exchange simulator needs to have a unique incoming
senderCompID in order to accept the connection..

You should register with Marketcetera at
http://www.marketcetera.com/contacts/register to get your own
senderCompID. See the writeup at
http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#FIXConnection
for more information - you'll need to specify your senderCompID in the
oms.xml file.

let me know if you have other issues.

--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
Lee Figgest

Re: Launching OMS from Eclipse

Reply Threaded More More options
Print post
Permalink
Hello Toli,

Thank you for getting back to me. My Eclipse setup is working fine now and
it looks like you have a very solid architecture. Coming from a dotnet
background I have had to acquaint myself with a new dev environment. My next
task is to integrate Hibernate and Spring.

Out of interest, why did you go with Ruby for your web platform? I can
confirm the FIX bindings don't compile on Win. Seems this is common
knowledge however. Also Ruby lacks the maturity of PHP..

Regards

Lee

-----Original Message-----
From: Toli Kuznets [mailto:[hidden email]]
Sent: 26 November 2007 19:12
To: Lee Figgest
Cc: [hidden email]
Subject: Re: [m-etc-dev] Launching OMS from Eclipse

Lee,

Apologies for taking a while to reply to your email - this got buried in the
spam folder since you sent this to the dev list without subscribing to it.

> I would appreciate some help with launching OMS from Eclipse. I don't
> appear to make a valid connection to the data source and it's probably
> a config error but I have tried everything I can think of.
>
> 00:11:53,906 [QFJ Timer] INFO  event - FIX.4.2:MRKTC-OMS->MRKTC-EXCH:
> Initiated logon request
> 00:11:54,140 [SocketConnectorIoProcessor-0.0] INFO  event -
> FIX.4.2:MRKTC-OMS->MRKTC-EXCH: Disconnecting

The problem is that you are using the generic senderCompID (MRKTC-OMS) to
connect. The exchange simulator needs to have a unique incoming senderCompID
in order to accept the connection..

You should register with Marketcetera at
http://www.marketcetera.com/contacts/register to get your own senderCompID.
See the writeup at
http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#FIX
Connection
for more information - you'll need to specify your senderCompID in the
oms.xml file.

let me know if you have other issues.

--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.

_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
toli

Re: Launching OMS from Eclipse

Reply Threaded More More options
Print post
Permalink
Lee,

Glad you got the setup working.

> it looks like you have a very solid architecture. Coming from a dotnet
> background I have had to acquaint myself with a new dev environment. My next

Let me know if you have any questions. Btw, we have a .NET adapter as
well - http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/dotNetSupport
- would love to hear your thoughts if you use it.

> task is to integrate Hibernate and Spring.

We've done some prototyping to have Marketcetera use Hibernate with
Spring, so let me know if you have any questions.

> Out of interest, why did you go with Ruby for your web platform? I can
> confirm the FIX bindings don't compile on Win. Seems this is common
> knowledge however. Also Ruby lacks the maturity of PHP..

To answer you question, we had multiple reasons. We wanted to
standardize on Ruby - we already had Ruby as the built-in algorithmic
prototyping environment in Photon (which was really easy to implement
with JRuby and Eclipse RDT). We chose Ruby on Rails since it allowed
for fairly fast implementations, and we weren't that familiar with
PHP. In addition, we wanted to run Rails applications on the Java
platform in the future (which is possible now, see
http://oracleappslab.com/2007/11/21/mix-jruby-on-rails-small-teams-agile-and-its-effects-on-the-world/
).

We are planning to work with the QuickFIX guys to get the Ruby
bindings to compile on Windows in the future, but yes, unfortunately,
it does mean that Tradebase can only run on Linux/Mac OS X/Unix  for
now.

--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev