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 » MD5 hash and esql

Post new topic  Reply to topic
 MD5 hash and esql « View previous topic :: View next topic » 
Author Message
mqmqmq
PostPosted: Mon Nov 23, 2009 4:19 am    Post subject: MD5 hash and esql Reply with quote

Novice

Joined: 02 Jul 2008
Posts: 22

Hi,
Environment: Linux, Broker 6.0.0.9.
Need: Calculate MD5 hash from certain string.

When writing esql, Base64 Decoding and encoding can be done by referring to external java class/function (see below):

CREATE PROCEDURE base64Decode(IN source CHAR)
RETURNS BLOB
LANGUAGE JAVA
EXTERNAL NAME "com.ibm.broker.javacompute.Base64.decode";

Is it possible to calculate MD5 hash in a similar way? Or is it always necessary to use JavaCompute node? I have googled enough but didn't find any solution how to refer to external java class/function in this case.

Thanks!

BR,
--
mqmqmq
Back to top
View user's profile Send private message
gs
PostPosted: Mon Nov 23, 2009 5:50 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

You should be able to create a simple method that makes use of java's built in MD5 functionality.

What's the problem with referring to a java method?
Back to top
View user's profile Send private message
mrch1
PostPosted: Sun Nov 29, 2009 7:05 pm    Post subject: Reply with quote

Newbie

Joined: 29 Nov 2009
Posts: 5

i'm doing this in an easy way:
if you're using ORACLE database,create a storedproc called md5,so you can just use the sql "select md5(?) from dual" and passthru the sql you need with a paramvalue of your string to the database,and then it comes out with what you need.
may this be a little help
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 Message Broker (ACE) Support » MD5 hash and esql
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.