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 » WebSphere Interchange Server + Adapters » JText Adapter file rename

Post new topic  Reply to topic
 JText Adapter file rename « View previous topic :: View next topic » 
Author Message
dp111443
PostPosted: Tue Dec 15, 2009 4:27 am    Post subject: JText Adapter file rename Reply with quote

Voyager

Joined: 25 Feb 2004
Posts: 82

Hi,

We have an interface requirement through Message Broker along with a Jtext adapter to ftp files to a remote server.

It's a many messages in and many messages out of the broker but all messages will be appended to the same file on the remote server (via Jtext adapter). This is all fine as we already do this, but my question is:

How does the client know when we've finished writing to the file for them to pick it up?

As I see it, ther ear two options:

1 - Write to a temporary directory, and then move it to the client pull directory when complete.

2 - Or the common one when using ftp is to write to a temporary file and then rename it at the end.

Firstly, is this possible and if so how do we acheive this? How do you tell the Jtext adapter that this is the last message so complete the file?

Appreciate your help.

Regards,
Dharmesh
_________________
Integration Design/Developer

IBM Certified System Administrator -
WebSphere MQ V5.3
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Dec 15, 2009 5:28 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

will give you one more option

Create the exact file on the respective directory, once it is completed/finished create one more file called filename.done [0 bytes],

your target application should check for the .done file first if its there process the Exact file.

the same target application should delete it once it process the exact file later.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
dp111443
PostPosted: Tue Dec 15, 2009 6:16 am    Post subject: Reply with quote

Voyager

Joined: 25 Feb 2004
Posts: 82

Thanks for the response. Yes indeed, that would be another option.

If anyone knows how (assuming it can!) any of these options can be implemented using the JText adapter, that would very useful.

Thanks.
Dharmesh
_________________
Integration Design/Developer

IBM Certified System Administrator -
WebSphere MQ V5.3
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 » WebSphere Interchange Server + Adapters » JText Adapter file rename
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.