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 » Compress a file before sending as a reply

Post new topic  Reply to topic Goto page 1, 2  Next
 Compress a file before sending as a reply « View previous topic :: View next topic » 
Author Message
nimisha.parihar
PostPosted: Tue Nov 30, 2010 11:28 pm    Post subject: Compress a file before sending as a reply Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

How can I compress a file before sending as a reply through HTTPReply Node ?

Does anyone have sample code ?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 01, 2010 1:01 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

There is/was the ZipNode Support Pack plugin node . AFAIK, it does not work on V7 but does on V6.0/V6.1.

Otherwise, you will be into writing some Java code.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Wed Dec 01, 2010 2:36 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

Any idea on where can i download this support pack from. We are using 6.1 version of MB
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 01, 2010 2:48 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Via the link at the top of the Page?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Wed Dec 01, 2010 2:52 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

Thanks
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Wed Dec 01, 2010 2:55 am    Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

please have a look at the top of this page...

where u can see Search, Library, InfoCenter, Certification, SupportPacs

Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Wed Dec 01, 2010 4:27 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

Hi i installed the support pack following the steps -

1. Start the Message Broker Toolkit Workbench.
2. Select Help -> Software Updates -> Find and Install...
3. From the Features Updates pane, select Search for new features to install next.
4. From the Update Sites to visit pane, click New Local Site.
5. From the Browse for Files pane, find the following folder: C:\IA99\V6\Toolkit\6.0\SupportPacs.Site OK.
6. Select and expand the SupportPacs.Site directory. Check SupportPacs. Click next.
7. From the Search Results pane. The following feature is displayed: SupportPacs. Check this feature and click next.
8. Accept the terms in the license agreements. Click next
9. From the Install Location pane. Select the following available site: <WMB_INSTALL_DIR>\MessageBrokersToolkits\6.0\eclipse and click finish.
10. Click Install to start the feature installation process.


I can now see the node(zip/unzip) in the Palette window. But while compiling the Message Flow i am getting following error -

BIP2241E: A Loadable Implementation Library (.lil, .jar, or .par) is not found for message flow node type 'ZipPlugInNode' in message flow 'Learn_ZIP_LOGIC_MF'.

The broker received an instruction to create a message flow node of type 'ZipPlugInNode', in message flow 'Learn_ZIP_LOGIC_MF'. The broker cannot create nodes of this type because an implementation library for this node type does not exist in the LIL path.

Ensure that the LIL path is correct, and that it contains all the required node implementation libraries, including those supplied by IBM. The node name is case sensitive, therefore check that the toolkit and runtime names match. If the broker is trying to create a node type that ends in 'NodeNode', ensure that when the node was registered with the toolkit the name registered did not end in 'Node'.
Also ensure that you have saved the message flow, and any nested message flows. Redeploy the new configuration to the broker, specifying a complete configuration. If the LIL file is correct, check that the message node type is correct.


Can someone tell whats missing ?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 01, 2010 4:50 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Surely you mean deploying?

Did you do thre second part of the install? i.e. the runtime?

you need to copy the runtime bits to the relevant directories AND THEN restart the Broker.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Wed Dec 01, 2010 5:08 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

do u mean copying the following files in -

1. ZipPlugIn.lil
2. zlib1.dll
3. UnZipPlugIn.lil


MB installation Folder\IBM\MQSI\6.1\bin
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Wed Dec 01, 2010 5:13 am    Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

nimisha.parihar wrote:
do u mean copying the following files in -

1. ZipPlugIn.lil
2. zlib1.dll
3. UnZipPlugIn.lil


MB installation Folder\IBM\MQSI\6.1\bin



yeah exactly... copy these files and once restart the broker machine
Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Wed Dec 01, 2010 5:22 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

Thanks it worked...

But i have a doubt.

The application accessing my web service is a java/jsp.
If i compress the file using this ZIP node and send it as a reply through HTTP REPLY Node, will they be able to uncompress it through their java code ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 01, 2010 5:34 am    Post subject: Reply with quote

Grand High Poobah

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

nimisha.parihar wrote:
If i compress the file using this ZIP node and send it as a reply through HTTP REPLY Node, will they be able to uncompress it through their java code ?


If they can't, why have they given you this requirement to zip the file before sending it back?

Though why (or how) you're sending a file back as an HTTP response is unclear to me. Or how that differs from a more normal response that isn't "a file".
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Wed Dec 01, 2010 5:38 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

What i wanted to make sure is that what is the algorithm this ZIP node uses to compress file ?

If it is among the standard ones then no issue.
But to let the client uncompress the file i need to share with them the COMPRESSION LOGIC...
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 01, 2010 5:47 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I've use the ZIp Support Pack and the EmailOutputNode to send 'zipped' attachments. I've had no issues unzipping the attachments at the other end. Why do you think that sending them over HTML will be any different.

Why don't you setup a 'mock' HTTP service using broker and see what you get. If you get something that can be output to a file and then read with something like winZip or 7zip then you are all set. outputting the resultant base 64 encoded stream and looking at the first few bytes in hex would show you if it was successful.

A little experimentation on your part would probably answer the question without having to come back here and ask first.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
nimisha.parihar
PostPosted: Thu Dec 02, 2010 12:43 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2010
Posts: 41

I am facing problems using the ZIP Node.
I have a simple compute node before the ZIP NOde to generate an XML Output having the following code --

CALL CopyEntireMessage();
SET OutputRoot.BLOB.BLOB = CAST(InputRoot.XMNSC AS BLOB);
SET OutputRoot.BLOB.FileInZip.File = 'Readme.txt';
SET OutputRoot.BLOB.FileInZip.Date = InputRoot.MQMD.PutDate;
SET OutputRoot.BLOB.FileInZip.Time = InputRoot.MQMD.PutTime;
RETURN TRUE;


This is because i need to do some Database operations to create an XML file before zipping it and sending it as a reply through the HTTPReply Node.

The response is propagating through Failure terminal.
I tried capturing the response in a queue and found the XML file being sent with NO ERROR MESSAGES.

Not able to catch whats missing
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 » Compress a file before sending as a reply
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.