ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » c (MQAPI) To Java (MQAPI)

Post new topic  Reply to topic
 c (MQAPI) To Java (MQAPI) « View previous topic :: View next topic » 
Author Message
abiram8
PostPosted: Mon Mar 24, 2003 5:54 am    Post subject: c (MQAPI) To Java (MQAPI) Reply with quote

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
View user's profile Send private message Send e-mail
mqonnet
PostPosted: Mon Mar 24, 2003 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
abiram8
PostPosted: Mon Mar 24, 2003 7:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqonnet
PostPosted: Mon Mar 24, 2003 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » c (MQAPI) To Java (MQAPI)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.