Web Development
htmlthin.txt
Associated article: HTML Thin Client and Transactions
Tags: Web Development JVM Languages Design
Published source code accompanying the article by Jean-Francois Touchette in which he shows how you can implement reliable, non-repeatable transactions using a technique that is applicable to any Java Sever Development Kit-based architecture. Also see HTMLTHIN.ZIP.
HTML Thin Client and Transactions
by Jean-Francois Touchette
Listing One
public static byte[] generateTransactionTokenVersion1(String sessionId) {
try {
MessageDigest sha = MessageDigest.getInstance("SHA-1");
sha.update( sessionId.getBytes() );
Date d = new Date();
long dl = d.getTime();
sha.update( (Long.toString(...


