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 » Hashing Implementation In ESQL

Post new topic  Reply to topic Goto page 1, 2  Next
 Hashing Implementation In ESQL « View previous topic :: View next topic » 
Author Message
anarki85
PostPosted: Tue Jul 26, 2011 5:15 am    Post subject: Hashing Implementation In ESQL Reply with quote

Newbie

Joined: 25 Jul 2011
Posts: 8

Hi I am looking if there is a way to implement Hashing
in ESQL instead of using some java function for it.

Thanks
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jul 26, 2011 6:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

HashMap and HashTable work very well. Why reinvent the wheel? Are you afraid of Java Compute Nodes?
_________________
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
mqjeff
PostPosted: Tue Jul 26, 2011 6:13 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Just use the logical message tree and use { } to access an element under it by name.

And remember that {} can only access a single level of the tree.
Code:
set myHashValue = Environment.MyHash.{myHashKey}
.
Back to top
View user's profile Send private message
anarki85
PostPosted: Tue Jul 26, 2011 6:14 am    Post subject: Reply with quote

Newbie

Joined: 25 Jul 2011
Posts: 8

No I m not, but the boss is hell bent on doing it in ESQL.is there a code avaliable for checksum in ESQL.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jul 26, 2011 6:16 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Your boss is Sheila Jackson Lee?
_________________
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
mqjeff
PostPosted: Tue Jul 26, 2011 6:40 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

anarki85 wrote:
No I m not, but the boss is hell bent on doing it in ESQL.is there a code avaliable for checksum in ESQL.


What do you need a checksum for?

What do you need a checksum *of*?

What does "available in ESQL" mean to you? Just find a checksum algorithm on the internet somewhere and recode it in ESQL - what's the problem?
Back to top
View user's profile Send private message
anarki85
PostPosted: Tue Jul 26, 2011 6:54 am    Post subject: Reply with quote

Newbie

Joined: 25 Jul 2011
Posts: 8

@lancelotlinc :hahaha

@mqjef:yeah thats wht i am looking for code for the Checksum in ESQL.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 26, 2011 7:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

anarki85 wrote:
@mqjef:yeah thats wht i am looking for code for the Checksum in ESQL.


did you try Mr. Google for a checksum algorithm?

Is it that hard to rewrite Java or C or perl or etc. code into ESQL?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 26, 2011 7:34 am    Post subject: Reply with quote

Grand High Poobah

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

anarki85 wrote:
i am looking for code for the Checksum in ESQL.


You still have not mentioned what you want a checksum of or why.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
anarki85
PostPosted: Tue Jul 26, 2011 7:56 am    Post subject: Reply with quote

Newbie

Joined: 25 Jul 2011
Posts: 8

@mqjeff:was looking if anyone has written it before, than i can use it .

@vitor:want to us eit for duplicate checking of payload.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 26, 2011 8:26 am    Post subject: Reply with quote

Grand High Poobah

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

anarki85 wrote:
@mqjeff:was looking if anyone has written it before, than i can use it .


According to Mr Google, a lot of people have done this before. Not in ESQL he says, but in a number of different languages you could port.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
anarki85
PostPosted: Wed Jul 27, 2011 1:08 am    Post subject: Reply with quote

Newbie

Joined: 25 Jul 2011
Posts: 8

i am looking for the code in ESQL .
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jul 27, 2011 3:50 am    Post subject: Reply with quote

Grand High Poobah

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

anarki85 wrote:
i am looking for the code in ESQL .


And I wish you success in your search.

It occurs to me that in the time you've spent looking for an ESQL version you could have ported one of the other implementations into ESQL twice over, but that's just me.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 27, 2011 4:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

anarki85 wrote:
i am looking for the code in ESQL .

I believe Godot will be along in just a moment.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Jul 27, 2011 5:55 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.

mqjeff wrote:
anarki85 wrote:
i am looking for the code in ESQL .

I believe Godot will be along in just a moment.


I guess that someone got out of the wrong side of the bed this morning. That 'pun' would go right over the head of many here.
_________________
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
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 » Hashing Implementation In 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.