Menu

#3 Remove call to createTID()

v1.0
open
nobody
Function (1)
5
2010-08-24
2010-08-24
No

When starting a transaction, method createTID() on the JCo.Client (JCo2) resp. on the JCoDestination (JCo3) ist called. This call acquires a transaction id from SAP using a call behind the scenes to a function module that belongs to function group ARFC. According to JCo javadoc, createTID() is the entry point to an asynchronous call to a SAP function, so we should not use it here, though it somehow seems to work in this context, also for a synchronous call.

We ran into problems, because in our project, the SAP admins refused to give us permissions to call any function in function group ARFC, so we could not use the adapter at all in our project.

In the adapter (ManagedConnectionImpl), the TID is used only as a unique identifier for the running transaction, so we could easily create an id by other means (e.g. UUID) and avoid calling the createTID() method.

Discussion


Log in to post a comment.