cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2589) Allow CXF Bean endpoint to work in asynchronous mode
Date Wed, 23 Dec 2009 10:39:29 GMT
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.


Mime
View raw message