First I tried connecting to the broker and establish a connection. It worked and I found that the Java uses BigEndian scheme when they serialize data types where as Intel based architectures use LittleEndian scheme. So when serializing data types like int, long from C++ need to re-arrange the bytes.
Now I am converting the required classes and try to get the message publishing to work from C++.Converting an existing java application to a C++ application is always not easy as there are many simple utilities that are available in Java and missing in C++.
Java code always has the luxury of using different collection classes to keep object references but when it comes to C++ they need to be implemented manfully.
No comments:
Post a Comment