Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 371C9200C24 for ; Thu, 23 Feb 2017 15:07:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 35B1D160B62; Thu, 23 Feb 2017 14:07:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 79017160B50 for ; Thu, 23 Feb 2017 15:07:34 +0100 (CET) Received: (qmail 243 invoked by uid 500); 23 Feb 2017 14:07:33 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Delivered-To: moderator for user@uima.apache.org Received: (qmail 92749 invoked by uid 99); 23 Feb 2017 14:03:26 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=g/z9eaTQRgafxPZjEpeZiSMSo4CSQX4p0IHJr4x01X4=; b=pbtylu1m8JmU0hyKPiym+H4Z/mFgitG2HrqTsDc7EWdRpFX3OlfbeZhpl/xVT9Aolk Z8fCREUMW99SlnhMCLCDqZyR/z96Q83TR4H+Pw7jYuPoN5UWgkAtm+qc7U7aaWmIDt3W QgoczRItbtzYO5xsODP9Q8wimpKeY7a3j3gPBsBWkz3+p06rbd4YiRIWhzwSYWuTmEY3 L6geHjZRkREd4k3y/YcTvEA0uHOmUT6eiY8v+09Fz0NVqU2cCGKoXFrUFHiWx35UtoJW DjGdyW/ikrDCqu+j5wtVy6MJ/L4Gu4iJYZ4dADgBv6lUinmOS5HrhLFd+7ViuO7xx1Uy VOAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=g/z9eaTQRgafxPZjEpeZiSMSo4CSQX4p0IHJr4x01X4=; b=BalnB5vtkdurW2JMUZHcttMcbMaVJ+Cart7BmUQAkharMMBCygqZgK1xCDEE+F6ORZ kA9xY5DiwgIRwe8h9RqbawAeJgT/zACwSzVr3FjIdvIzANxeKkxjDjePNV3NrAv9vUeY h0TVuMXEM1ceDwkaK+8+KpA7gFi+BLBsQb7r+MmGx3tVAO1AT1lOTV4PrYu9yZtykCKM 15LogOgSLfYfHiSHeMSf/Y9F9voa3ygLKSOYKfa+A//dmqL7qWe0ll58J4zlHIsJaDsr 4VhhqGcQBMdwDcUDwzPjml0lcFoF88qovydOGftjtlYbTOuUQ+57Vxrn9xpk+FDXLZv7 8HTg== X-Gm-Message-State: AMke39nJV34e/LCoXegbDGEd6veXZODkiHqq4VVLb8AQACPCj1a5X5DHnT7EQJre7zt+y6s6Ly83D4plazuwvA== X-Received: by 10.46.33.141 with SMTP id h13mr5433666lji.135.1487858596785; Thu, 23 Feb 2017 06:03:16 -0800 (PST) MIME-Version: 1.0 From: Dibyojyoti Sanyal Date: Thu, 23 Feb 2017 15:03:16 +0100 Message-ID: Subject: Using a third party Delegate in UIMA-AS aggregate To: user@uima.apache.org Cc: Richard Eckart de Castilho Content-Type: multipart/alternative; boundary=001a1142bcf82335950549331334 archived-at: Thu, 23 Feb 2017 14:07:35 -0000 --001a1142bcf82335950549331334 Content-Type: text/plain; charset=UTF-8 Hello, We are working in a project where we want to provide cross platform NLP text processing with UIMA-AS processing. So our goal is to generate a Delegate and add it to the delegates generated by UIMA-AS. UIMA-AS generates services and the services endpoint names (or destinations) can be provided to a UIMA-AS aggregate pipeline to generate a combination of services. The services are the delegates which are used by the aggregate. Now our approach is to provide a new destinations name( which is not generated by any of the UIMA-AS services but by some other JAVA or non JAVA cross platform program) along with other UIMA-AS generated endpoits which are generated by few UIMA-AS services ,and build an aggregate combining them. In the aggregate the UIMA-AS generated services will work as delegates and the non UIMA-AS generated endpoint should also work for another delegate which is not a UIMA-AS generated service. As the documentation[1 ] says the endpoints are the input queues generated when the UIMA-AS services are generated. The input queue name user can specify. But, for each input queue there is a reply queue created by the aggregate ,this reply queue is a temporary queue and it is mentioned in the header of a CAS message sent from aggregate to delegate, the delegate replies to the reply queue. So We are interested to know, 1. How we can generate a temporary reply queue and tell the UIMA-AS aggregate to use it corresponding the input queue that is not generated by the UIMA-AS service but by other means? 2. How the UIMA-AS generated delegate replies to a reply queue (specifically the code)? 3. Is UIMA-AS is flexible enough so that we can provide a delegate which is not generated by UIMA-AS but still can be combined with other UIMA-AS delegates so that it can work seemlessly with others and can be used in a UIMA-AS aggregate? We have subscribe to an input queue and receive a CAS message, they we tried to send reply to the reply queue which is mentioned in the 'reply-to' field of the header but it did not work. The program we are using for this is a python client which is connected to the UIMA-AS broker using stomp protocol.Code is given below. def main(): conn = stomp.Connection() conn.set_listener('MyListener', MyListener()) conn.start() conn.connect() conn.subscribe('OpenNlpSegmenter_Service',1,'auto') while True: time.sleep(10); class MyListener(stomp.ConnectionListener): def on_connected(self,headers, message): print('connected "%s"' % message) def on_connecting(self,host_and_port): print("connecting to: ",host_and_port) def on_error(self, headers, message): print('received an error "%s"' % message) def on_message(self, headers, message): print('received headers "%s"' % headers) print('received a message "%s"' % message) print("trying to connect to reply queue") conn = stomp.Connection() conn.start() conn.connect() conn.send(headers['reply-to'],message,headers=headers) conn.disconnect() The header of a message is is looks like below: {'*destination*': '/queue/LanguageToolLemmatizer_Service', 'priority': '4', 'ServerURI': 'tcp://localhost:61616', 'subscription': '1', 'timestamp': '1487698370963', '*reply-to*': '/remote-temp-queue/ID:Dibyo-PC-54740-1487698146395-1:3:1', 'AcceptsDeltaCas': 'true', '*MessageFrom*': 'rmtRtrnQ_DemoAnnotatorQueue_1_LanguageToolLemmatizer_Service_192.168.16.13f7a252:15a61b82f1a:-8000', 'message-id': 'ID:Dibyo-PC-54740-1487698146395-3:1:3:1:3', 'Payload': '1000', 'MessageType': '3000', 'expires': '0', 'Command': '2000', 'CasReference': '543544b:15a61bb7001:-7ff8' } 1. https://uima.apache.org/d/uima-as-2.8.1/uima_async_scaleout.html#ugr.async.ov.concepts.jms_descriptor Your help is highly appreciated. Thanks & Regards, Dibyojyoti Sanyal Student TU Darmstadt MDSS *Linked in * --001a1142bcf82335950549331334--