dcsimg
C/C++ API for SwiftMQ
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Curtis_Paris
Posted On:   Tuesday, June 22, 2004 03:47 PM

I know that there is not a C/C++ API for SwiftMQ. But, there is also not a clear definition of the SMPQ protocol so that I could get some engineers at my company to write one (or contract out).



From the SwiftMQ perspective, would it be better for us to write a Swiftlet to act as the C/C++ API bridge (much like the current JMS Swiftlet), or adapt to the SMPQ protocol?

Re: C/C++ API for SwiftMQ

Posted By:   Andreas_Mueller  
Posted On:   Wednesday, June 23, 2004 11:27 PM

Here is another one, Jace, which provides a nice C++ lib on top of JNI. Looks very promising:


http://reyelts.dyndns.org:8080/jace/release/docs/index.html

Re: C/C++ API for SwiftMQ

Posted By:   Andreas_Mueller  
Posted On:   Wednesday, June 23, 2004 06:03 AM

The SMQP protocol isn't open. It's complicated as well and we need the freedom to change it anytime. I would recommend to use the Java Invocation API. This API is part of JNI but isn't very well known. However, it's very powerful because you spawn a JVM from your native code and can then instantiate any class and call any method including JMS/JNDI which keeps you vendor independent. So all what you need is to spawn the JVM and instantiate JNDI/JMS classes and call the resp. methods.



Look here:




http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html




And here for the basic JNI functions you can use:




http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/functions.html
About | Sitemap | Contact