.NET API?


paul.green <pgreen@...>
 

Hi All,

 

I’m trying to start a POC with OpenMAMA using .NET, but I’m having trouble getting going.

 

I’m not clear on how to go about this as everything we’ve tried so far has not worked, and the documentation (here) isn’t very clear for C#. In section 1.4. it jumps into making calls into OpenMAMA but doesn’t explain what assembly needs referencing or how to set up the .Net project.

 

Also, in section 2.2 Windows it mentions a file with the following format;

 

<d>_<t>_wombat_products_<mw>_win32_<VS>_with_entitle_<branch>.zip

 

where:

<d> - a date stamp

<t> - a time stamp

<mw> - indicates the middleware this version of OpenMAMA is for

<VS> - the version of the Visual Studio compiler used

<branch> - the branch number

 

But I can’t find any such file anywhere on the OpenMAMA web site (i.e. not here)

 

I’ve downloaded openmama-src-2.2.1.1.tar.bz2 which contains a Visual Studio .sln file. This doesn’t build however (initially failing on flex.exe) and I can’t find any documentation on how to build it.

 

I can see the c# MAMA.cs file have p/invoke calls into a native dll called libmamacmd.dll, but I can’t find this file anywhere.

 

Any help to get going would be appreciated!

 

Thanks

Paul Green

Development Manager

NYSE Technologies

Office: +61 2 92473633

Mobile: +61 403874561

 

www.nyx.com/

 

The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.

 

The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.


Matt Mulhern
 


Hi Paul,
Addressing your points inline below.

Regards,
Matt Mulhern.


From: "paul.green" <pgreen@...>
Date: Monday, 18 February 2013 04:29
To: "openmama-users@..." <openmama-users@...>
Subject: [Openmama-users] .NET API?

Hi All,

 

I’m trying to start a POC with OpenMAMA using .NET, but I’m having trouble getting going.

 

I’m not clear on how to go about this as everything we’ve tried so far has not worked, and the documentation (here) isn’t very clear for C#. In section 1.4. it jumps into making calls into OpenMAMA but doesn’t explain what assembly needs referencing or how to set up the .Net project.

 

Also, in section 2.2 Windows it mentions a file with the following format;

 

<d>_<t>_wombat_products_<mw>_win32_<VS>_with_entitle_<branch>.zip

 

where:

<d> - a date stamp

<t> - a time stamp

<mw> - indicates the middleware this version of OpenMAMA is for

<VS> - the version of the Visual Studio compiler used

<branch> - the branch number

 

But I can’t find any such file anywhere on the OpenMAMA web site (i.e.not here)


This file description is related to how enterprise customers receive OpenMAMA within their release package. Pre-built OpenMAMA distributions for windows will be distributed on openmama.org soon.

 

I’ve downloaded openmama-src-2.2.1.1.tar.bz2 which contains a Visual Studio .sln file. This doesn’t build however (initially failing on flex.exe) and I can’t find any documentation on how to build it.


The build instructions for OpenMAMA are found in the README file in the root of the source tarball you have downloaded. Looking at your error, it sounds like you have not included flex  (a required package for OpenMAMA) in your PATH. I have copied the relevant README section below:

(from the OpenMAMA README)
"Set the AVIS_HOME environment variable appropriately.  This should contain
debug, release, and include folders.

Set the JAVA_HOME environment variable appropriately (for mamajni). This should
contain an include folder.

Set the ANT_HOME environment variable appropriately (for mamajni).

Set the GTEST_HOME environment variable appropriately (optional for unittests).
This should contain debug, release, and include folders.

Insure Flex is included in your path.

Open OpenMama.sln

Build common, then mama, then mamda. Avis folder should also be built, if not
previously done.

Concurrent building of multiple products may cause build fail.
Flex perbuild command is run when building common."

 

I can see the c# MAMA.cs file have p/invoke calls into a native dll called libmamacmd.dll, but I can’t find this file anywhere.

Shared object .dll files are created as part of the build process. Since you have not yet built OpenMAMA, they will not be present in your build directory.

 

Any help to get going would be appreciated!

 

Thanks

Paul Green

Development Manager

NYSE Technologies

Office: +61 2 92473633

Mobile: +61 403874561

 

www.nyx.com/