@Override public void onCompletion(@NotNull Packet response) { pool.recycle(tube); completionCallback.onCompletion(response); }
@Override public void onCompletion(@NotNull Packet response) { pool.recycle(tube); completionCallback.onCompletion(response); }
@Override public void onCompletion(@NotNull Packet response) { pool.recycle(tube); completionCallback.onCompletion(response); }
@Override public void onCompletion(@NotNull Packet response) { try { try { encodePacket(response, con, tk.codec); } catch (IOException ioe) { LOGGER.log(Level.SEVERE, ioe.getMessage(), ioe); } currentPool.recycle(tk); } finally { con.close(); callback.onCompletion(); } } },null);
@Override public void onCompletion(@NotNull Packet response) { try { try { encodePacket(response, con, tk.codec); } catch (IOException ioe) { LOGGER.log(Level.SEVERE, ioe.getMessage(), ioe); } currentPool.recycle(tk); } finally { con.close(); callback.onCompletion(); } } },null);
@Override public void onCompletion(@NotNull Packet response) { try { try { encodePacket(response, con, tk.codec); } catch (IOException ioe) { LOGGER.log(Level.SEVERE, ioe.getMessage(), ioe); } currentPool.recycle(tk); } finally { con.close(); callback.onCompletion(); } } },null);
void handle(Message requestMessage, SoapJmsUri uri) throws IOException, JMSException { JmsServerTransport connection = wsJmsTransportFactory.createJmsServerTransport(requestMessage, uri); JMSToolkit tk = pool.take(); try { tk.handle(connection); connection.flush(); } finally { pool.recycle(tk); connection.close(); } }
public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } }
public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } }
tk.handle(connection); } finally { currentPool.recycle(tk);
public void onCompletion(@NotNull Packet response) { ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { // Only recycle tubes in non-exception path as some Tubes may be // in invalid state following exception tubePool.recycle(tube); } if (callback != null) { if (tc != null) { response = createServiceResponseForException(tc, response, soapVersion, request.endpoint.getPort(), null, request.endpoint.getBinding()); } callback.onCompletion(response); } }
tk.handle(connection); } finally { currentPool.recycle(tk);
tk.handle(connection); } finally { currentPool.recycle(tk);
receiver.setResponseContext(new ResponseContext(reply)); pool.recycle(tube);
receiver.setResponseContext(new ResponseContext(reply)); pool.recycle(tube);
receiver.setResponseContext(new ResponseContext(reply)); pool.recycle(tube);