|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to send and retreive the mdb files in MQ using JAVA API |
« View previous topic :: View next topic » |
Author |
Message
|
sreelu |
Posted: Tue Jul 23, 2002 4:50 am Post subject: How to send and retreive the mdb files in MQ using JAVA API |
|
|
Newbie
Joined: 23 Jul 2002 Posts: 2
|
HI,
We are sending and reading data from txt file using middleware Mqseries and programming language java.
But we are getting a problem when we are sending and retrieving a mdb or xl file in MQseries using java API.
If any one of you have the solution please let us know ASAP.
We will be obliged.
Regards
Srilakshmi
Last edited by sreelu on Tue Jul 23, 2002 9:23 pm; edited 2 times in total |
|
Back to top |
|
 |
ssanchez |
Posted: Tue Jul 23, 2002 6:37 am Post subject: |
|
|
 Newbie
Joined: 19 Jun 2002 Posts: 7 Location: Chile
|
Could you describe the problems that you have? _________________ Samuel. |
|
Back to top |
|
 |
bduncan |
Posted: Tue Jul 23, 2002 7:45 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
MQSeries can send any kind of file. It does not concern itself with the content of a message, only the transport of it. Some questions you need to evaluate:
1) Are these messages travelling across platforms? If so you may have character set issues, and may need to use the MQGMO_CONVERT option.
2) What mechanism are you using to read the files into the messages? Streams, Files, byte arrays, etc.?
When you say "we are getting a problem" you'll need to be more specific. Are there any FDC files, what do the MQ logs say, what reason codes are you getting, is it happening on the MQPUT, MQGET, or somewhere in between? _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
sreelu |
Posted: Tue Jul 23, 2002 9:17 pm Post subject: How to send and retreive the mdb files in MQ using JAVA API |
|
|
Newbie
Joined: 23 Jul 2002 Posts: 2
|
HI,
Thanks for the response.
We are able to send and retreive the text files using MQseries as middleware and java as the programming language.
On the sender side, we are reading the content of the text file to a byte array using DataInputStream and then we are putting the message in the queue. Similarly on the receiving end, we are reading the message from the queue and writing the same into a file using RandomAccessFile.
But in case of xl or mdb files, we are unable to use the same program which we have used for text files.
The problem is how to read the xl or mdb file in java and to put the message in the queue. Similarly, on the receiving end how to read the contents from the queue and create back the same xl or mdb file as on sender side.
If u have a solution, please let us know ASAP.
we will be obliged
Regards
Srilakshmi |
|
Back to top |
|
 |
bduncan |
Posted: Tue Jul 23, 2002 11:11 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
You simply need to get the file into a byte array. |
|
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
|
|
|
|