Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD3D617942 for ; Thu, 23 Oct 2014 10:12:30 +0000 (UTC) Received: (qmail 81966 invoked by uid 500); 23 Oct 2014 10:12:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 81918 invoked by uid 500); 23 Oct 2014 10:12:30 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 81906 invoked by uid 99); 23 Oct 2014 10:12:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2014 10:12:29 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=SPF_HELO_PASS,SPF_NEUTRAL,URI_HEX,URI_TRY_3LD X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [162.253.133.43] (HELO mwork.nabble.com) (162.253.133.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2014 10:12:24 +0000 Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id E407085A3AE for ; Thu, 23 Oct 2014 03:12:02 -0700 (PDT) Date: Thu, 23 Oct 2014 03:09:17 -0700 (PDT) From: uromahn To: users@activemq.apache.org Message-ID: <1414058957349-4686659.post@n4.nabble.com> In-Reply-To: <1413924420802-4686603.post@n4.nabble.com> References: <1413838436678-4686563.post@n4.nabble.com> <1413844676608-4686567.post@n4.nabble.com> <1413920484241-4686602.post@n4.nabble.com> <1413924420802-4686603.post@n4.nabble.com> Subject: Re: Receiving over IP and port using TCP MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As was stated before, when two endpoints communicate via raw TCP sockets, there has to be some binary wire-protocol in place so that both parties can understand each other. In other words, both sides will have to use the same "language" or they simply won't understand each other and everything is just a stream of meaningless bits. When you want to talk to ActiveMQ, your client will have to "speak" Openwire which is the wire-protocol used by ActiveMQ. You have three choices now: 1. your client can use the ActiveMQ client which implements Openwire with JMS 1.1 on top of it, or 2. if your client cannot use the ActiveMQ client library, it can implement Openwire itself (I would *strongly* advise *against* this!!), or 3. You could define some wire-protocol yourself, implement your own server that handles the communication with your client and translates the incoming "messages" into JMS messages using the ActiveMQ client library connecting to your broker. This approach is commonly known as proxy pattern. Whatever you do, your client will either have to "speak" Openwire or talk to something that translates into Openwire. Hope that helps. -- View this message in context: http://activemq.2283324.n4.nabble.com/Receiving-over-IP-and-port-using-TCP-tp4686563p4686659.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.