islookup_timeout #30

Merged
claudio.atzori merged 3 commits from islookup_timeout into master 2020-07-28 13:53:13 +02:00

This PR includes the possibility to set connectTimeout and requestTimeout in the isLookUp service stub. Further extensions might add the possibility to pass the timeout values as parameters, as well as to cover more alternative implementations for the service instance (currently only javax.xml.ws.BindingProvider is supported)

This PR includes the possibility to set `connectTimeout` and `requestTimeout` in the isLookUp service stub. Further extensions might add the possibility to pass the timeout values as parameters, as well as to cover more alternative implementations for the service instance (currently only `javax.xml.ws.BindingProvider` is supported)
michele.artini was assigned by claudio.atzori 2020-07-27 17:52:25 +02:00
miriam.baglioni was assigned by claudio.atzori 2020-07-27 17:52:25 +02:00
Member

I tested the patch in a simple wf (import claims from db).

The IS query have been regularly executed and the logs contain the following lines:

2020-07-28 10:37:12,417 INFO [main] eu.dnetlib.dhp.utils.ISLookupClientFactory: creating eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService stub from http://beta.services.openaire.eu
:8280/is/services/isLookUp?wsdl
2020-07-28 10:37:12,721 INFO [main] org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean: Creating Service {http://services.dnetlib.eu/}ISLookUpServiceService from class
 eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService
2020-07-28 10:37:13,815 INFO [main] eu.dnetlib.dhp.utils.ISLookupClientFactory: setting timeouts for javax.xml.ws.BindingProvider to requestTimeout: 600000, connectTimeout: 600000

In particular the last line indicates that the service is an instance of BindingProvider.

For me, the PR can be accepted.

I tested the patch in a simple wf (import claims from db). The IS query have been regularly executed and the logs contain the following lines: ``` 2020-07-28 10:37:12,417 INFO [main] eu.dnetlib.dhp.utils.ISLookupClientFactory: creating eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService stub from http://beta.services.openaire.eu :8280/is/services/isLookUp?wsdl 2020-07-28 10:37:12,721 INFO [main] org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean: Creating Service {http://services.dnetlib.eu/}ISLookUpServiceService from class eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService 2020-07-28 10:37:13,815 INFO [main] eu.dnetlib.dhp.utils.ISLookupClientFactory: setting timeouts for javax.xml.ws.BindingProvider to requestTimeout: 600000, connectTimeout: 600000 ``` In particular the last line indicates that the service is an instance of **BindingProvider**. For me, the PR can be accepted.
claudio.atzori closed this pull request 2020-07-28 13:53:13 +02:00
Sign in to join this conversation.
No description provided.