|
|
|
VENU
|
Dear All,
A great work by You for Marketcetera, i used the c++ basic integration code and used Activemq cpp with openwire and compiled successfully. i send one message using marketcetera ors but i would like to know where should i receive the incoming messages such as logon , logout, execution reports etc. i am using fix initiator and embeded activemq cpp code and sending messages but it sent message twice. i don't think it is correct process to send the message. Please help me in this issues. regards tinnu |
|
toli
|
Venu,
When you are using the .NET or OpenWire integration points, you have two options for receiving the incoming messages. The first is to just use Photon, our GUI order-entry app that connects to the same ORS and you can watch all the incoming messages on it. You won't see your outgoing order, but you will see the immediate execution report that the ORS sends, along with all the execution reports coming back from your counterparty and all the admin messages such as Logon/Logout. http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Photon Another option is to subscribe to the ActiveMQ topic on which the ORS publishes all the incoming messages and listen for them yourself. The topic name is ors-messages See the bottom architecture diagram at http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Architecture for an overview, along with a more detailed explanation of the ORS workflow at http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/MessageModifiers . The .NET API provides the onApplicationMessage/onSessionMessage callback methods which get triggered when incoming messages are received by the ORS. A third option would be to use HermesJMS to watch the underlying ActiveMQ JMS directly: http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/HermesJMSSetup > i am using fix initiator and embeded activemq cpp code and sending messages > but it sent message twice. > i don't think it is correct process to send the message. You are certainly correct - you should not be seeing 2 outgoing messages. Can you give me a bit more background as to what you are doing and what you are seeing? Are you seeing 2 identical messages reach your FIX destination? Can you send me the log from the ORS (feel free to replace any proprietary fields such as sender/targetCompID with XXX if needed). Thanks -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. _______________________________________________ Marketcetera Developers mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email]. |
||||||||||||||||
|
VENU
|
Hello Mr.Toli,
Thanks for your earlier response and i happy to have your support. i attached the log file and i have made changes in code about sending message twice. try { // // Create a ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616"); connectionFactory->setUsername((char*)(LPCTSTR)usr); connectionFactory->setPassword((char*)(LPCTSTR)pswd); connection = connectionFactory->createConnection(); connection->start(); // // Create a Session session = connection->createSession( Session::AUTO_ACKNOWLEDGE ); destination = session->createQueue("ors-commands"); // // Create a MessageProducer from the Session to the Topic or Queue producer = session->createProducer( destination ); producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT ); }catch ( CMSException& e ) { e.printStackTrace(); MessageBox("ActiveMQConnectionFactory Error !"); } in this code i created a Message producer object and created queue but not the topic. if i handle Message consumer object and if i set listener for that object then could i handle the incoming messages of ORS (topic name ors-messages). Regards tinnu ors.log |
||||||||||||||||
|
toli
|
Venu,
Your approach seems reasonable. Is there a particular reason why you don't want to go through the Marketcetera .NET integration API? We do all that dirty work for you there: http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/dotNetSupport If you want to do it all yourself, you can try using Spring.NET framework to offload most of your JMS queue/topic management. They have an NMS layer that speaks natively with ActiveMQ: http://www.springframework.net/docs/1.2.0-M1/reference/html/nms-quickstart.html I've attached a sample Visual Studio project that gives you an example of how to use Spring.NET to connect to JMS. It's using older Spring.NET dlls, so just make sure to download the new ones from the latest release. There is one sub-project that sends and one that receives messages on JMS. hope this helps. On Thu, Sep 4, 2008 at 2:38 AM, VENU <[hidden email]> wrote: > > Hello Mr.Toli, > > Thanks for your earlier response and i happy to have your support. > > i attached the log file and i have made changes in code about sending > message twice. > > try { > // // Create a ConnectionFactory > connectionFactory = new > ActiveMQConnectionFactory("tcp://localhost:61616"); > > connectionFactory->setUsername((char*)(LPCTSTR)usr); > connectionFactory->setPassword((char*)(LPCTSTR)pswd); > > connection = connectionFactory->createConnection(); > connection->start(); > > // // Create a Session > session = connection->createSession( Session::AUTO_ACKNOWLEDGE ); > destination = session->createQueue("ors-commands"); > // > // Create a MessageProducer from the Session to the Topic or Queue > producer = session->createProducer( destination ); > producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT ); > }catch ( CMSException& e ) > { > e.printStackTrace(); > MessageBox("ActiveMQConnectionFactory Error !"); > } > > > in this code i created a Message producer object and created queue but not > the topic. if i handle Message consumer object and if i set listener for > that object then could i handle the incoming messages of ORS (topic name > ors-messages). > > Regards > tinnu > > > > > > toli wrote: >> >> Venu, >> >> When you are using the .NET or OpenWire integration points, you have >> two options for receiving the incoming messages. >> The first is to just use Photon, our GUI order-entry app that connects >> to the same ORS and you can watch all the incoming messages on it. You >> won't see your outgoing order, but you will see the immediate >> execution report that the ORS sends, along with all the execution >> reports coming back from your counterparty and all the admin messages >> such as Logon/Logout. >> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Photon >> >> Another option is to subscribe to the ActiveMQ topic on which the ORS >> publishes all the incoming messages and listen for them yourself. >> The topic name is ors-messages >> See the bottom architecture diagram at >> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Architecture >> for an overview, along with a more detailed explanation of the ORS >> workflow at >> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/MessageModifiers >> . >> >> The .NET API provides the onApplicationMessage/onSessionMessage >> callback methods which get triggered when incoming messages are >> received by the ORS. >> >> A third option would be to use HermesJMS to watch the underlying >> ActiveMQ JMS directly: >> http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/HermesJMSSetup >> >>> i am using fix initiator and embeded activemq cpp code and sending >>> messages >>> but it sent message twice. >>> i don't think it is correct process to send the message. >> >> You are certainly correct - you should not be seeing 2 outgoing >> messages. Can you give me a bit more background as to what you are >> doing and what you are seeing? Are you seeing 2 identical messages >> reach your FIX destination? Can you send me the log from the ORS (feel >> free to replace any proprietary fields such as sender/targetCompID >> with XXX if needed). >> >> Thanks >> >> -- >> Toli Kuznets >> http://www.marketcetera.com: Open-Source Trading Platform >> download.run.trade. >> _______________________________________________ >> Marketcetera Developers mailing list >> Marketcetera Documentation: http://trac.marketcetera.org >> To unsubscribe, go to >> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send >> an email to [hidden email]. >> >> > http://n2.nabble.com/file/n838383/ors.log ors.log > -- > View this message in context: http://n2.nabble.com/need-help-for-Trading-client-tp833620p838383.html > Sent from the m-etc-dev mailing list archive at Nabble.com. > > _______________________________________________ > Marketcetera Developers mailing list > Marketcetera Documentation: http://trac.marketcetera.org > To unsubscribe, go to > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email]. > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. _______________________________________________ Marketcetera Developers mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email]. |
||||||||||||||||
|
VENU
|
Hello Mr.Toli,
I am very thankful for the sample code and work for me. As i am basically c++ guy where as i am trying to do small curiculam project and i need to submit this in c++. its is the only reason for not going to java or .NET. But i need your support for continuing my work in c++ marketcetera project. Regards venu
|
||||||||||||||||
|
toli
|
Venu,
No problem. it's always good to have people try using different ways and languages to access our platform. Let me know if you need any other help toli On Mon, Sep 8, 2008 at 1:50 AM, VENU <[hidden email]> wrote: > > Hello Mr.Toli, > > > I am very thankful for the sample code and work for me. > > > As i am basically c++ guy where as i am trying to do small curiculam project > and i need to submit this in c++. its is the only reason for not going to > java or .NET. But i need your support for continuing my work in c++ > marketcetera project. > > Regards > venu > > > toli wrote: >> >> Venu, >> >> Your approach seems reasonable. Is there a particular reason why you >> don't want to go through the Marketcetera .NET integration API? We do >> all that dirty work for you there: >> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/dotNetSupport >> >> If you want to do it all yourself, you can try using Spring.NET >> framework to offload most of your JMS queue/topic management. >> They have an NMS layer that speaks natively with ActiveMQ: >> http://www.springframework.net/docs/1.2.0-M1/reference/html/nms-quickstart.html >> >> I've attached a sample Visual Studio project that gives you an example >> of how to use Spring.NET to connect to JMS. It's using older >> Spring.NET dlls, so just make sure to download the new ones from the >> latest release. There is one sub-project that sends and one that >> receives messages on JMS. >> >> hope this helps. >> >> On Thu, Sep 4, 2008 at 2:38 AM, VENU <[hidden email]> wrote: >>> >>> Hello Mr.Toli, >>> >>> Thanks for your earlier response and i happy to have your support. >>> >>> i attached the log file and i have made changes in code about sending >>> message twice. >>> >>> try { >>> // // Create a ConnectionFactory >>> connectionFactory = new >>> ActiveMQConnectionFactory("tcp://localhost:61616"); >>> >>> connectionFactory->setUsername((char*)(LPCTSTR)usr); >>> connectionFactory->setPassword((char*)(LPCTSTR)pswd); >>> >>> connection = connectionFactory->createConnection(); >>> connection->start(); >>> >>> // // Create a Session >>> session = connection->createSession( >>> Session::AUTO_ACKNOWLEDGE ); >>> destination = session->createQueue("ors-commands"); >>> // >>> // Create a MessageProducer from the Session to the Topic >>> or Queue >>> producer = session->createProducer( destination ); >>> producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT ); >>> }catch ( CMSException& e ) >>> { >>> e.printStackTrace(); >>> MessageBox("ActiveMQConnectionFactory Error !"); >>> } >>> >>> >>> in this code i created a Message producer object and created queue but >>> not >>> the topic. if i handle Message consumer object and if i set listener for >>> that object then could i handle the incoming messages of ORS (topic name >>> ors-messages). >>> >>> Regards >>> tinnu >>> >>> >>> >>> >>> >>> toli wrote: >>>> >>>> Venu, >>>> >>>> When you are using the .NET or OpenWire integration points, you have >>>> two options for receiving the incoming messages. >>>> The first is to just use Photon, our GUI order-entry app that connects >>>> to the same ORS and you can watch all the incoming messages on it. You >>>> won't see your outgoing order, but you will see the immediate >>>> execution report that the ORS sends, along with all the execution >>>> reports coming back from your counterparty and all the admin messages >>>> such as Logon/Logout. >>>> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Photon >>>> >>>> Another option is to subscribe to the ActiveMQ topic on which the ORS >>>> publishes all the incoming messages and listen for them yourself. >>>> The topic name is ors-messages >>>> See the bottom architecture diagram at >>>> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Architecture >>>> for an overview, along with a more detailed explanation of the ORS >>>> workflow at >>>> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/MessageModifiers >>>> . >>>> >>>> The .NET API provides the onApplicationMessage/onSessionMessage >>>> callback methods which get triggered when incoming messages are >>>> received by the ORS. >>>> >>>> A third option would be to use HermesJMS to watch the underlying >>>> ActiveMQ JMS directly: >>>> http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/HermesJMSSetup >>>> >>>>> i am using fix initiator and embeded activemq cpp code and sending >>>>> messages >>>>> but it sent message twice. >>>>> i don't think it is correct process to send the message. >>>> >>>> You are certainly correct - you should not be seeing 2 outgoing >>>> messages. Can you give me a bit more background as to what you are >>>> doing and what you are seeing? Are you seeing 2 identical messages >>>> reach your FIX destination? Can you send me the log from the ORS (feel >>>> free to replace any proprietary fields such as sender/targetCompID >>>> with XXX if needed). >>>> >>>> Thanks >>>> >>>> -- >>>> Toli Kuznets >>>> http://www.marketcetera.com: Open-Source Trading Platform >>>> download.run.trade. >>>> _______________________________________________ >>>> Marketcetera Developers mailing list >>>> Marketcetera Documentation: http://trac.marketcetera.org >>>> To unsubscribe, go to >>>> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send >>>> an email to [hidden email]. >>>> >>>> >>> http://n2.nabble.com/file/n838383/ors.log ors.log >>> -- >>> View this message in context: >>> http://n2.nabble.com/need-help-for-Trading-client-tp833620p838383.html >>> Sent from the m-etc-dev mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Marketcetera Developers mailing list >>> Marketcetera Documentation: http://trac.marketcetera.org >>> To unsubscribe, go to >>> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send >>> an email to [hidden email]. >>> >> >> >> >> -- >> Toli Kuznets >> http://www.marketcetera.com: Open-Source Trading Platform >> download.run.trade. >> >> >> _______________________________________________ >> Marketcetera Developers mailing list >> Marketcetera Documentation: http://trac.marketcetera.org >> To unsubscribe, go to >> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send >> an email to [hidden email]. >> >> > > -- > View this message in context: http://n2.nabble.com/need-help-for-Trading-client-tp833620p1051024.html > Sent from the m-etc-dev mailing list archive at Nabble.com. > > _______________________________________________ > Marketcetera Developers mailing list > Marketcetera Documentation: http://trac.marketcetera.org > To unsubscribe, go to > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email]. > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. _______________________________________________ Marketcetera Developers mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email]. |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |