|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
c (MQAPI) To Java (MQAPI) |
« View previous topic :: View next topic » |
Author |
Message
|
abiram8 |
Posted: Mon Mar 24, 2003 5:54 am Post subject: c (MQAPI) To Java (MQAPI) |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
Currently Iam involved in migration of c codes to java.
Our the client has specific format and header structures all written in c
If any body have the document or know the IBM link for convertion of c MQAPI to MQJava(API) please let me know.
Which can really help our team to solve lots of problems
Regards,
Abiram
 |
|
Back to top |
|
 |
mqonnet |
Posted: Mon Mar 24, 2003 11:01 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
I, personally am not aware of any such docs. But here are some pointers.
1) You may or may not be able to convert all c apps to java. And in that event, you could use JNI to call C apps from java. Might as well modify the existing c apps to hold only functional behaviour. Whereas use java apps as you wanted, to achieve what you want to making calls to these c functions/sources.
2) Got to remember that its not as easy as "copy-paste". Because of the use of pointers and structures in c. Moreover MQ Api calls itself are not deep. In the sense that, there may be only limited number of functions at your disposal to map its respective C api call.
Good luck
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
abiram8 |
Posted: Mon Mar 24, 2003 7:36 pm Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
Thanks for the reply .I havnot used JNI but any way I think this is one of the better approach for my migration.
I want to know can we get all the funtionality like (portability) etc.,
from JNI as java provides
Regards,
Abiram |
|
Back to top |
|
 |
mqonnet |
Posted: Mon Mar 24, 2003 7:56 pm Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
I have used JNI before but not in MQ context. And hence i cannot comment in this relation.
I dont see why you wont be able to achieve the level of portability etc. One of the other alternatives would be create dll's from your existing c code and use or call it in your java apps. That would be again a better solution. But its all upto your requirement and design and you have to sit with your architects to get to any conclusion in this regards.
Hope this helps.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|