Author |
Message
|
new_to_wmb8 |
Posted: Fri Sep 20, 2013 2:58 am Post subject: Multiple CSV to a single ZIP file conversion |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Hi All,
i have devloped a flow which converts xml to csv , and put the file in a location. in continuation of the same now i have to compress all the csv files to a single file.
all the csv file names are different and i have make a single compressed file.
can any one plz  |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Sep 20, 2013 3:15 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
One way to do it, and I'm sure there will be others suggested, is to store the file names in the Environment (or GlobalCache) and after all files are created, use a JCN to build your zip.
Not sure why this design problem is stumping you?!?!?! _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Fri Sep 20, 2013 4:17 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
File names are stored in enviroment and files are getting converted to csv.
i have never worked on JCN nodes  |
|
Back to top |
|
 |
McueMart |
Posted: Fri Sep 20, 2013 4:29 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 20, 2013 4:39 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 20, 2013 5:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
There's absolutely no reason you should use Broker to do this. |
There are much easier alternatives. Just because you have WMB doesn't mean you have to use it for everything. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Fri Sep 20, 2013 5:27 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
yes i know there are other way as well , but i have to use wmb only. i have zip all the files and then send it to a specific queue, after that those files will be send over by HTTP Post to a URL using datapower. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 20, 2013 6:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
new_to_wmb8 wrote: |
i have to use wmb only. |
Why? What's the technical reason for that?
new_to_wmb8 wrote: |
i have zip all the files |
AFAIK you'll need Java to do this.
new_to_wmb8 wrote: |
send it to a specific queue, after that those files will be send over by HTTP Post to a URL using datapower. |
If you have to use WMB only, why use DataPower? WMB can do that. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 20, 2013 6:12 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Just to confirm: Java is the best tool available in WMB for handling the ZIP format. As somebody else has said, it's not that hard. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Fri Sep 20, 2013 6:16 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
@vitor: its client requirement to use only wmb and datapower.
yes i am trying do it using JCN node. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 20, 2013 6:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
new_to_wmb8 wrote: |
@vitor: its client requirement to use only wmb and datapower. |
That's not a technical requirement; that's someone telling you something. What's the technical reason?
Likewise, why use DataPower when WMB can do it? Is that just because the client told you to? What's the reason for that? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Fri Sep 20, 2013 6:28 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 20, 2013 6:29 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Vitor is pointing out that WMB can easily send the zipped file over HTTP. You haven't explained why you need to use DataPower for that task.
There may be a good reason, but we don't know what it is yet. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
new_to_wmb8 |
Posted: Fri Sep 20, 2013 6:33 am Post subject: |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 20, 2013 7:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
So rather than fix it using the advice given in that thread you decided to add an extra DataPower step? How is that different from adding a non-WMB step to zip the files up? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|