Project

General

Profile

« Previous | Next » 

Revision 47148

wf logger

View differences:

AsyncClientUtils.java
26 26

  
27 27
		final String url = remoteBaseUrl + "/async/method/" + remoteMethod + ((StringUtils.isNotBlank(localBaseUrl)) ? "?caller=" + localBaseUrl : "");
28 28

  
29
		log.info("invoking async method: " + url);
30

  
31 29
		final AsyncInvocation async = (new RestTemplate()).postForObject(url, o, AsyncInvocation.class);
32 30
		if (callback != null) {
33 31
			activeRemoteCalls.put(async.getId(), callback);
34 32
		}
35 33

  
34
		log.info("async method invoked, url: " + url + ", id: " + async.getId());
35

  
36 36
		return async.getInfo();
37 37
	}
38 38

  
39 39
	public boolean processResponse(final String id, final AsyncResponse response) {
40

  
41
		log.info("Received async response, id: " + id);
42

  
40 43
		if (activeRemoteCalls.containsKey(id)) {
41 44
			final AsyncClientCallback callback = activeRemoteCalls.get(id);
42 45

  

Also available in: Unified diff