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 Message Broker (ACE) Support » Multiple CSV to a single ZIP file conversion

Post new topic  Reply to topic Goto page 1, 2  Next
 Multiple CSV to a single ZIP file conversion « View previous topic :: View next topic » 
Author Message
new_to_wmb8
PostPosted: Fri Sep 20, 2013 2:58 am    Post subject: Multiple CSV to a single ZIP file conversion Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Fri Sep 20, 2013 3:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
new_to_wmb8
PostPosted: Fri Sep 20, 2013 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message
McueMart
PostPosted: Fri Sep 20, 2013 4:29 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

It wouldn't be a huge amount harder than this:

http://stackoverflow.com/questions/4773778/creating-zip-archive-in-java

Have a go, you might surprise yourself!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 20, 2013 4:39 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There's absolutely no reason you should use Broker to do this.

There are a thousand ways you can solve this problem.

All of them require thinking and effort on your part.

http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24017225&loc=en_US&cs=utf-8&lang=en
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 20, 2013 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Fri Sep 20, 2013 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Sep 20, 2013 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Fri Sep 20, 2013 6:12 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Fri Sep 20, 2013 6:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Sep 20, 2013 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Fri Sep 20, 2013 6:28 am    Post subject: Reply with quote

Centurion

Joined: 28 May 2013
Posts: 127
Location: Hyderabad, India

Vitor , i had already posted here for ZIP (files) post to HTTPS URL , in that i was not able to do it with wmb , so i had to use datapower.
http://www.mqseries.net/phpBB/viewtopic.php?p=359175&sid=ceba01d29f14f61e0eabf6922ba6e41c
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Sep 20, 2013 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message
new_to_wmb8
PostPosted: Fri Sep 20, 2013 6:33 am    Post subject: Reply with quote

Centurion

Joined: 28 May 2013
Posts: 127
Location: Hyderabad, India

i was not able to it with wmb because of ssl problem ,
http://www.mqseries.net/phpBB2/viewtopic.php?t=64971&postdays=0&postorder=asc&start=0
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 20, 2013 7:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

new_to_wmb8 wrote:
Vitor , i had already posted here for ZIP (files) post to HTTPS URL , in that i was not able to do it with wmb , so i had to use datapower.
http://www.mqseries.net/phpBB/viewtopic.php?p=359175&sid=ceba01d29f14f61e0eabf6922ba6e41c


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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Multiple CSV to a single ZIP file conversion
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.