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 API Support » MQ APIs with Java

Post new topic  Reply to topic
 MQ APIs with Java « View previous topic :: View next topic » 
Author Message
kblv
PostPosted: Sun Oct 23, 2011 11:59 pm    Post subject: MQ APIs with Java Reply with quote

Novice

Joined: 11 Oct 2011
Posts: 23

Hi,

I need to write a few simple programs that use different MQ-APIs in java.
Each program needs to make the basic MQ action (mqconn, mqopen, mqput, mqget).
I wrote one program using the com.ibm.mq jar-file, its works with the objects MQQueueManager,
MQQueue, MQMessage etc.. its works fine, but I'm actually dont know which API it is.

If I got it right the AMI API is the one using the jar com.ibm.mq.amt?

How many APIs are in java for MQ?

I will very happy if you can direct me to some tutorials that explain the basic of use in each API.

Thanks!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Oct 24, 2011 1:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

AMI is far more than just deprecated.

There are two APIS in Java for applications. The WebSphere MQ API and JMS.

The PCF API is not for applications, it's for monitoring/management tools. Although it is available in java.
Back to top
View user's profile Send private message
kblv
PostPosted: Mon Oct 24, 2011 1:55 am    Post subject: Reply with quote

Novice

Joined: 11 Oct 2011
Posts: 23

Hi mqjeff, thank for your reply.

so with com.ibm.mq jar-file I used The WebSphere MQ API?
is it also called MQI?

and about AMI, i know that its not supported anymore, but I still need to use it for my task.


Last edited by kblv on Mon Oct 24, 2011 1:59 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Oct 24, 2011 1:57 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

kblv wrote:
and about AMI, i know that its not supported anymore, but I still need to use it for my task.


No.

You absolutely do not need to use it for any task.

Anyone who has said you need to use it for any task, including yourself, is completely wrong.

Do not bother learning or using AMI. Do not bother writing or testing any code that uses AMI. You will *never* use it again, and if you some how do end up using it again, it will be because you are working for some company that is doing everything entirely wrong. And that is how you will know you should go work for some other company.
Back to top
View user's profile Send private message
kblv
PostPosted: Mon Oct 24, 2011 2:10 am    Post subject: Reply with quote

Novice

Joined: 11 Oct 2011
Posts: 23

Quote:
you are working for some company that is doing everything entirely wrong. And that is how you will know you should go work for some other company.



well, I am new in this place, and part of upgrading the system, we are moving step by step, at the moment there are several apps that still using the AMI with MQ, we dont know exactly how many and which apps.... The idea behind my task is to check that after doing some upgrade in the system the apps which still using AMI won't fail, so we decided to wrote some simple app and test it.

I know its sounds like alot of mess, its also true, but I hope to step out of this situation as far as possible, but yet its need to be step by step...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Oct 24, 2011 2:19 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447


well.

Okay, you do need to learn at least a little AMI.

Here's another thing - do not think about the java API as being "com.ibm.websphere.mq.jar". It's more than one jar, and the *best* way to think about it is to think about it as using the full product install - client or server.

Don't try to package apps with just a couple of jar files. That way leads to PMRS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ APIs with Java
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.