1
votes

We are upgrading from Mobilefirst 7.1 to 8.0. Javascript JMS adapter had been taken off. MobileFirst 8 JMS Adapter So we have to write our own JMS Java adapter.

The backend server require quite sometime to reply to MFP server. Hence our Java JMS adapter keep timeout when talk to the MQ. We know about able to increase Javascript adapter timeout time, but unable to find for JAVA. (We managed to get the data in debug mode although the adapter had been timeout.) https://mobilefirstplatform.ibmcloud.com/blog/2014/12/22/adapter-thread-pools-removed/

Is there any ways for us to increase the timeout time between Java Adapter to Back End System?.

Thank You.

1
Hi. What is the problem - does the adapter fails? does the client stop waiting for the adapter? - Issahar Weiss
@IssaharWeiss It will just fail invocation timeout at the eclipse console. - Terry Chew
It is very strange, as there isn't any timeout on the JavaAdapter call to the backend, it is totally controllable by the developer. Can you try it with Swagger UI or Postman? - Issahar Weiss
Have you find a solution? - mosca90

1 Answers

0
votes

Since Java adapters are basically JAX-RS applications, and for HTTP requests you're creating an HTTP client to perform the request, you need to look at Java/JAX-RS APIs to increase the timeout.

See for example here: Setting request timeout for JAX-RS 2.0 Client API