|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JText Adapter file rename |
« View previous topic :: View next topic » |
Author |
Message
|
dp111443 |
Posted: Tue Dec 15, 2009 4:27 am Post subject: JText Adapter file rename |
|
|
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 |
|
 |
Gaya3 |
Posted: Tue Dec 15, 2009 5:28 am Post subject: |
|
|
 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 |
|
 |
dp111443 |
Posted: Tue Dec 15, 2009 6:16 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|