Marketcetera Community Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
rename market data provider  XML
Forum Index » Developer Help
Author Message
estevan


Joined: 04/02/2010 13:17:28
Messages: 14
Offline

Hi all,

I develop a new market data feed starting from marketcetera-fix data feed.

Now I'm able to execute market data request to my fix server.
I would like rename provider name from marketcera to currenex.

I do these steps


Refactor package name from in org.marketcetera.marketdata.currenex;

Edit file org.marketcetera.module.ModuleFactory and insert this line


Edit file CurrenexFeedModuleFactory.java and overwrite this line


Edit file CurrenexFeedFactory.java


Edit file Message.java

edit
..src\main\resources\META-INF\services\org.marketcetera.module.ModuleFactory


Refacotr all java source file according with YOUR_PREFERITE_PROVIDER (currenex)

Change provider name in mystrategy


whene I run strategy marketcetera said me:


Why? I searched deeply in code and I don't understand why I obtain this errror....

please help me!!!

thanks estevan

This message was edited 1 time. Last update was at 30/03/2010 15:04:27

colin


Joined: 23/03/2009 21:35:49
Messages: 449
Offline

Are you trying to run the Strategy Agent? Did you copy your currenex market data adapter jar file to modules/jars in your SA installation?
estevan


Joined: 04/02/2010 13:17:28
Messages: 14
Offline

Hi colin,

I'm running it from intellij-idea like this!

I call strategy runner from java not from console....and I use market data adapter from my [yours ] source code!!

I do the same operations likes when I had marketcetera provider name instead currenex.
But with marketcetera runs!!

This message was edited 1 time. Last update was at 30/03/2010 15:45:03

colin


Joined: 23/03/2009 21:35:49
Messages: 449
Offline

I haven't run Metc in IntelliJ, so I'm not sure how your environment is set up. There is a directory in which Strategy Agent looks to find the jars to add to its classpath. The Marketcetera Market Data Adapter is probably already there. You may need to manually add your new jar file to that directory.

What I would do if I were you is to isolate the variables. Install/build a stand-alone Strategy Agent installation with the customary directories. Add your currenex MDA to modules/jars in that installation and see if it runs. If it does, then you know that you've built the module correctly. The next step (left as an exercise for you) is to figure out how to make it work in IJ.
 
Forum Index » Developer Help
Go to:   
Powered by JForum 2.1.8 © JForum Team