Skip to Content
0

JCo Server - JCoServerFunctionHandler - handleRequest - endless call and TID

Jun 01, 2017 at 11:43 AM

55

avatar image

Hi All,

I have implemented JCo Server at Java, according to sample codes (StepByStepServer).

Created a function inside repository of the JCo Server.

JCo Server is starting normally.

And I can catch requests inside following function handler.

Question 1) Is it normal that handleRequest method in StfcConnectionHandler (implementation of JCoServerFunctionHandler) is called continuously like inside an infinite loop?

Question 2) Inside handleRequest TID of request ( serverCtx.getTID() ) is always Null.

Is TID sent from SAP side?

public class StfcConnectionHandler implements JCoServerFunctionHandler {

//Properties

@Override
public void handleRequest(JCoServerContext serverCtx, JCoFunction function) throws AbapException
{
        …// Endless call to this method
}

}
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers