-
1. Re: JMS client written in C?
nphelps Mar 5, 2002 12:30 PM (in response to jukkalehti)Take a look at Codemesh JMS Courier at http://www.codemesh.com/en/JMSCourierR11.html
-
2. Re: JMS client written in C?
jukkalehti Mar 5, 2002 1:56 PM (in response to jukkalehti)It's C++ :( I'm using C only.
Thanks -
3. Re: JMS client written in C?
nphelps Mar 5, 2002 2:01 PM (in response to jukkalehti)You could build and open source C bridge that speaks the JbossMQ wire protocol...
-
4. Re: JMS client written in C?
jukkalehti Mar 6, 2002 2:18 AM (in response to jukkalehti)Well, that could be possible! Have you any pointers to the wire protocol? Any ideas how hard it is? Probably not just a weekend's job since nobody hasn't done it already..
-
5. Re: JMS client written in C?
pra Mar 6, 2002 2:54 AM (in response to jukkalehti)No probably not since the wire protocoll is built upon java serialization. So, first you will need to translate your c structs or what to java bytecode ;-)
A more doable aproach (i think) would be to write a corba invokation layer, and a stripped corba client, ie idl wich does not make it necessarry to create all those connections,sessions, consumers and producers.
I actually think such an adition to JBossMQ would be verry cools, since the POA has much more elaborate threading policys than RMI, and it would make it possible to have much more clients connecting to JBossMQ.
But as you said, it's not a weekend job ;-)
//Peter -
6. Re: JMS client written in C?
jukkalehti Mar 6, 2002 6:13 AM (in response to jukkalehti)Hmm, it could well be that my actual C program is of less work than C/JMS connector :)
Is there any "general way" to call Java methods from C programs? -
7. Re: JMS client written in C?
hchirino Mar 9, 2002 3:20 AM (in response to jukkalehti)You could also create a new socket protocol for your c client. You would have to add a new IL plugin to handle that protocol.
Regards,
Hiram -
8. Re: JMS client written in C?
one_each Mar 11, 2002 8:08 PM (in response to jukkalehti)I may get flogged for saying this, but if your in a Windows environment (I'm not), then ActiveJMS (http://active-jms.sourceforge.net/) may work for you. Its an ActiveX control written in Java.
-
9. Re: JMS client written in C?
nphelps Mar 12, 2002 4:08 PM (in response to jukkalehti)Hay, why would you get flogged! I wrote Active JMS!
-
10. Re: JMS client written in C?
jukkalehti Mar 13, 2002 4:34 AM (in response to jukkalehti)For me Active JMS is of no use since I'm operating on Unices. But nice to see that JMS system can be implemented by other means than 100% pure Java.
-
11. Re: JMS client written in C?
ronpfeifle Apr 23, 2002 2:42 PM (in response to jukkalehti)Actually, using JNI from a C program isn't all that hard (but you do need to wade through some documentation).
You probably don't want to expose bare JMS to C, but some wrapper that does what you need would be enough. Then it's pretty straight-forward to invoke that via C and JNI.
Ron -
12. Re: JMS client written in C?
fawce Dec 7, 2002 6:50 PM (in response to jukkalehti)check out csil.sourceforge.net, it is a new IL for jbossmq that encodes everything in xml, and writes to the wire only using the java.io.DataInputStream, java.io.DataOutputStreams, so you can communicate to any other language (if you write the client...). Work is underway for a c# client.
thanks,
fawce