Allow CXF Bean endpoint to work in asynchronous mode
----------------------------------------------------
Key: CXF-2589
URL: https://issues.apache.org/jira/browse/CXF-2589
Project: CXF
Issue Type: New Feature
Affects Versions: 2.2.5
Reporter: Charles Moulliard
The following code does not work :
@GET
@Path("/incidents2/")
public Incidents getIncidentsAsync() {
Incidents l = new Incidents();
// Call the distant service to get result (ASYNCHR WAY )
Future future = producer.asyncRequestBody("jms:queue:inout",
"GET");
// Check if we receive a feedback within 10 seconds
List<ReportIncident> i;
try {
i = producer.extractFutureBody(future,
10000,TimeUnit.MILLISECONDS, List.class);
} catch (TimeoutException e) {
return null;
}
l.setIncidents(i);
return l;
}
because CXF bean endpoint does not allow to work with async process
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.