• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction-ID

 
rsg
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I want to create Transaction-ID as part of SOAP header, Any good practices that I should follow to create Transaction-ID, this has to be unique for each request.
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Java 1.5, you can use UUID.randomUUID().toString(), gives something like 6f55dc66-a3f2-439a-8e51-e6652c8e32fb, which can be a good transaction id.

If you are running < 1.5, check out Commons ID package.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!