How to use Tamino X-Application Java API in servlets?

X-Application Version: 3.1.3
Tamino Version : 3.1.1.4
Platform : NT
WebContainer : Tomcat 3.3.1
JDK Version : 1.3.1_04

Hi,
I’m using Tamino X-Application Java API in my servlets.

1- If I define a TaminoStore object and then a BusinessDocumentWorkspace, How can I close them at the end of the servlet?

2- What is better?
a) put the TaminoStore and BusinessDocumentWorkspace objects in session variables in order to use the same Tamino session in all my servlets?
b) Create a new TaminoStore/BusinessDocumentWorkspace for each servlet?

Thanks and Regards,
Guillermo

  1. You don’t have to close the Store or the workspace. May might want to commit() the workspace, that’s all.

    2) Place the workspace in a session variable if you want both servlets to operate on the same workspace. If the user expects both servlets to operate on different data: place two workspaces with different names in two session variable. In either case, you’ll probably use a session variable because the workspace should persists multiple servlets requests from the same user.

    Michael

    Software AG Germany, Darmstadt