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 » how to put a file in a queue using java

Post new topic  Reply to topic Goto page 1, 2  Next
 how to put a file in a queue using java « View previous topic :: View next topic » 
Author Message
kalyani
PostPosted: Sun Oct 09, 2005 8:12 pm    Post subject: how to put a file in a queue using java Reply with quote

Newbie

Joined: 09 Oct 2005
Posts: 5

Hi All,
I am a newbie to MQ and wanted to know how exactly do we put a file in a queue.

Please reply at the earliest.

regards,
Kalyani
Back to top
View user's profile Send private message
Nigelg
PostPosted: Sun Oct 09, 2005 11:55 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

1. Read the file into your program

2. Put it to the queue using the put method.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
kalyani
PostPosted: Mon Oct 10, 2005 12:20 am    Post subject: Reply with quote

Newbie

Joined: 09 Oct 2005
Posts: 5

Is there no other way out but for reading the file and using put method. As in in prograaming guide i had come accross some command Amsndsendfile which sends a file but could not get a proper description.

What would happen if i have to transfer a binary file.

Please reply at the earliest.
Back to top
View user's profile Send private message
sebastianhirt
PostPosted: Mon Oct 10, 2005 12:29 am    Post subject: Reply with quote

Yatiri

Joined: 07 Jun 2004
Posts: 620
Location: Germany

I was googling for AMSNDSENDFILE. To me it doesn't really seems to be related to Java.

I think Nigel is absolutely right.

Reading the file and putting it.

I don't realy see what the problem is on transfering binary? I do think your program has to take care of that.

I would advice to have a look into the Using Java manual available on the link below.

http://www-306.ibm.com/software/integration/wmq/library/
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Oct 10, 2005 1:26 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

There is an AmSndSendFile method in the C interface to the AMI. In Java, the corresponding method is sendFile, on an AmSender object.
AMI is a cat 3 (fully supported) support pack, downloadable from http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000641&loc=en_US&cs=utf-8&lang=en
AMI is now a deprecated interface, with no further development being done.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
kalyani
PostPosted: Mon Oct 10, 2005 6:01 am    Post subject: Reply with quote

Newbie

Joined: 09 Oct 2005
Posts: 5

i could not get much data/reference on sendfile method in java. Could you pass me on some code snippet or some reference material.

thank you
kalyani
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 10, 2005 6:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Don't use it.

It's not worth it.

All it does, anyway, is read the data from the file and put it to a message.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hopsala
PostPosted: Mon Oct 10, 2005 8:23 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Don't use AMI, it's dead and buried.

However, you could use the lovely lovely support pac MA01: WebSphere MQ - Q program.

This question has been asked a thousand times, la prochaine fois - use the Search button.
Back to top
View user's profile Send private message
kalyani
PostPosted: Mon Oct 10, 2005 9:30 pm    Post subject: Reply with quote

Newbie

Joined: 09 Oct 2005
Posts: 5

is there some pdf available for MA01? I could not get any reference material on ibm site. Moreover is the service available as a free download?
Back to top
View user's profile Send private message
hopsala
PostPosted: Mon Oct 10, 2005 10:24 pm    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

kalyani wrote:
Moreover is the service available as a free download?

(?) This is what it says on the IBM site:
Quote:
Category 2 - As-is SupportPacs
SupportPacs in this category are available at no charge to all users of WebSphere® MQ family and MQSeries® family products. They are provided AS-IS and the license agreement which accompanies them DOES NOT provide for defect correction.

and in the link I gave you there's an FTP link smack in the middle y'know...
kalyani wrote:
is there some pdf available for MA01? I could not get any reference material on ibm site.

No pdf, after you download and unzip it, you'll find a README file.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Oct 10, 2005 11:48 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

There are many differences between AMI and MA01, of which perhaps not the least unimportant is that AMI is officially supported by IBM, and MA01 is not.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Oct 11, 2005 3:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What are you *really* trying to accomplish, by putting a file into a message?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hopsala
PostPosted: Tue Oct 11, 2005 6:51 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Nigelg wrote:
AMI is officially supported by IBM, and MA01 is not.

True, but let's be honest - officialy supported does not mean supported de-facto - and the facts are:

1. IBM stopped AMI developement some years ago, and has no intention of getting back to it (so internal IBM sources tell me).
2. It is not defined as a strategic product - in fact, it compromises IBMs main direction - JMS.
3. Since it is little used, it is extremely difficult to get knowledgable support, most likely the IBM supporteR will know less about AMI than the supporteE.
4. Support pacs, albeit unofficial, have long-since gone from "fun little gizmo's" to an integral part of the WMQ daily routine - log archiving, monitoring, benchmarks, tests etc. Besides, it's a whole new world, and as it turns out, free volunteer software tends to have better support than official products; for example MS03 WMQ object backup failed - that's better+faster support than any company will ever give you.

I've said my peace
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Oct 11, 2005 7:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

But really, it's entirely unclear if MA01 is going to be useful at all for kalyani.

Maybe kalyani needs a real adapter, with a full infrastructure, like Process Manager 4 Data from CommerceQuest.

Maybe kalyani needs a debug/development tool, like the rfhutil in IH03 or MQVisualEdit from CapitalWare.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hopsala
PostPosted: Tue Oct 11, 2005 7:10 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

jefflowrey wrote:
But really, it's entirely unclear if MA01 is going to be useful at all for kalyani.

I completely agree, I was just hogging the thread

And maybe what he really needs, is to read the manuals...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ API Support » how to put a file in a queue using 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.