@Override public void attachment( String contentType, InputStream content, Map<String, String> additionalHeaders) throws Exception { if (consumer != null) { consumer.attachment(contentType, content, additionalHeaders); } }
@Override public void soap(SoapMessage message) throws Exception { if (writingCtx == null) { MessageQueue queue = AsyncDB.getMessageQueue(requestServiceId.getClientId()); writingCtx = queue.startWriting(); consumer = writingCtx.getConsumer(); } consumer.soap(message); }