Method and apparatus for on-line transaction processing