Author |
Message
|
happyj |
Posted: Wed Mar 01, 2006 4:45 am Post subject: esql checksum |
|
|
Voyager
Joined: 07 Feb 2005 Posts: 87
|
Has anyone implemented a checksum generator with esql ?
Any particular algorithm ?
I would like to store this along with an id in a database lookup
and change the processing if I get an identical data message for
the same id.
Any pointers ?
thanks |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 01, 2006 4:47 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi happyj,
Could you explain your requirement please....
Regards. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Mar 01, 2006 5:01 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I would think you'd be better off writing / getting a java checksum generator and then implememeting that in the broker (if v6 = java compute node, else java proc ....) rather than in esql ..... _________________ -wayne |
|
Back to top |
|
 |
happyj |
Posted: Wed Mar 01, 2006 5:05 am Post subject: |
|
|
Voyager
Joined: 07 Feb 2005 Posts: 87
|
thanks
I am on V5 ( apologies for not saying ) |
|
Back to top |
|
 |
happyj |
Posted: Wed Mar 01, 2006 5:39 am Post subject: |
|
|
Voyager
Joined: 07 Feb 2005 Posts: 87
|
elvis_gn
I am dealing with a lot of data (many, large messages)
coming in much of which is repeated.
because of this I would like to change the flow processing depending on
if it is a repeat or not and not have to store the entire message. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Mar 01, 2006 8:02 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
If the messages are very large, the size of the input bitstream might be as good a hash value as any. If you're going to avoid storing the message, then presumably you're going to have to check every byte at some point before you assume that they're identical. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 01, 2006 1:05 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You could as well use an MD5 hash to check for identity... _________________ MQ & Broker admin |
|
Back to top |
|
 |
|