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 send and retreive the mdb files in MQ using JAVA API

Post new topic  Reply to topic
 How to send and retreive the mdb files in MQ using JAVA API « View previous topic :: View next topic » 
Author Message
sreelu
PostPosted: Tue Jul 23, 2002 4:50 am    Post subject: How to send and retreive the mdb files in MQ using JAVA API Reply with quote

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
View user's profile Send private message
ssanchez
PostPosted: Tue Jul 23, 2002 6:37 am    Post subject: Reply with quote

Newbie

Joined: 19 Jun 2002
Posts: 7
Location: Chile

Could you describe the problems that you have?
_________________
Samuel.
Back to top
View user's profile Send private message
bduncan
PostPosted: Tue Jul 23, 2002 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
sreelu
PostPosted: Tue Jul 23, 2002 9:17 pm    Post subject: How to send and retreive the mdb files in MQ using JAVA API Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Tue Jul 23, 2002 11:11 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

You simply need to get the file into a byte array.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How to send and retreive the mdb files in MQ using JAVA API
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.