Author |
Message
|
kalyani |
Posted: Sun Oct 09, 2005 8:12 pm Post subject: how to put a file in a queue using java |
|
|
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 |
|
 |
Nigelg |
Posted: Sun Oct 09, 2005 11:55 pm Post subject: |
|
|
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 |
|
 |
kalyani |
Posted: Mon Oct 10, 2005 12:20 am Post subject: |
|
|
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 |
|
 |
sebastianhirt |
Posted: Mon Oct 10, 2005 12:29 am Post subject: |
|
|
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 |
|
 |
Nigelg |
Posted: Mon Oct 10, 2005 1:26 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
|
Back to top |
|
 |
kalyani |
Posted: Mon Oct 10, 2005 6:01 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Oct 10, 2005 6:10 am Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 8:23 am Post subject: |
|
|
 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 |
|
 |
kalyani |
Posted: Mon Oct 10, 2005 9:30 pm Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 10:24 pm Post subject: |
|
|
 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 |
|
 |
Nigelg |
Posted: Mon Oct 10, 2005 11:48 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Oct 11, 2005 3:30 am Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Tue Oct 11, 2005 6:51 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Oct 11, 2005 7:05 am Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Tue Oct 11, 2005 7:10 am Post subject: |
|
|
 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 |
|
 |
|