Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7561817588 for ; Wed, 7 Oct 2015 22:03:46 +0000 (UTC) Received: (qmail 12952 invoked by uid 500); 7 Oct 2015 22:03:41 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 12896 invoked by uid 500); 7 Oct 2015 22:03:41 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 12883 invoked by uid 99); 7 Oct 2015 22:03:40 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 22:03:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5AA32C059F for ; Wed, 7 Oct 2015 22:03:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.215 X-Spam-Level: * X-Spam-Status: No, score=1.215 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GMTjig9QRp25 for ; Wed, 7 Oct 2015 22:03:30 +0000 (UTC) Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id ACA554357F for ; Wed, 7 Oct 2015 22:03:30 +0000 (UTC) Received: by vkfp126 with SMTP id p126so20730005vkf.3 for ; Wed, 07 Oct 2015 15:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gRcezrFhEitrj+m59v704ovAHu/fvBWaAXryT0a+/7g=; b=yM62KAOMfZRXSzLxjhvPPQqiYOO3o9N+MYA48U77E6CxKqr/gUcpDk+UzmYLzBVNFw 6/2t6yQZlE9tfOiKC9cPo5LWHDnG8pf3n8MRF078IyAZ1lmhE9l2Q6aSHo6Iii1VQFiR C+sbvK3j1asTyoLg/Tem0X2xPHyYAgCioemyaR1a8dKkhummWXMXzjSkUBAWn18zeziL d86g/ydeZRMNQFggGUuzsbdrfFLpaSeGTvS3RYSET50T6J1cv/Nr2601ST0m2s6BbyvB iUOKxxiwVo4icUIOoUGekuWUHdE8aAau5WNS6SiW9uh9TOPjN5iRVidZmfJ2RvjfqIuI OqhA== MIME-Version: 1.0 X-Received: by 10.31.152.7 with SMTP id a7mr2887555vke.116.1444255410352; Wed, 07 Oct 2015 15:03:30 -0700 (PDT) Received: by 10.31.3.144 with HTTP; Wed, 7 Oct 2015 15:03:30 -0700 (PDT) In-Reply-To: <1444250962734-4702742.post@n4.nabble.com> References: <1444250962734-4702742.post@n4.nabble.com> Date: Wed, 7 Oct 2015 18:03:30 -0400 Message-ID: Subject: Re: I can connect successfully to Artemis using Stomp Ruby client but can't publish messages From: Clebert Suconic To: "dev@activemq.apache.org" Content-Type: text/plain; charset=UTF-8 So, replace /queues by jms.queue. and it should work. On Wed, Oct 7, 2015 at 4:49 PM, akhettar wrote: > Hi > > I am using Artemis 1.1.0 version and I am unable to send/publish messages to > Artemis using Ruby stomp client - see below code snippet. I have also tried > other protocols such as AMQP, MQTT none are working. I can successfully > connect (connection is established), but when I publish the message nothing > gets published or sent to the queue. I am not seeing anything in the logs > visible to indicate what's wrong. However if I switch to Apache ActiveMQ > (any version, the latest works too) the below client works fine. Also, > openwire connections works when using JMeter for example. > > Have I missed anything? Your help is very much appreciated. > > Regards, > > Ayache > > > *Log output at the start up of Artemis:* > > 21:31:10,145 INFO [org.apache.activemq.artemis.integration.bootstrap] > AMQ101000: Starting ActiveMQ Artemis Server > 21:31:10,167 INFO [org.apache.activemq.artemis.core.server] AMQ221000: live > Message Broker is starting with configuration Broker Configuration > (clustered=false,journalDirectory=./data/journal,bindingsDirectory=./data/bindings,largeMessagesDirectory=./data/large-messages,pagingDirectory=./data/paging) > 21:31:10,199 INFO [org.apache.activemq.artemis.core.server] AMQ221013: > Using NIO Journal > 21:31:10,251 INFO [org.apache.activemq.artemis.core.server] AMQ221043: > Protocol module found: [artemis-server]. Adding protocol support for: CORE > 21:31:10,255 INFO [org.apache.activemq.artemis.core.server] AMQ221043: > Protocol module found: [artemis-amqp-protocol]. Adding protocol support for: > AMQP > 21:31:10,266 INFO [org.apache.activemq.artemis.core.server] AMQ221043: > Protocol module found: [artemis-hornetq-protocol]. Adding protocol support > for: HORNETQ > 21:31:10,268 INFO [org.apache.activemq.artemis.core.server] AMQ221043: > Protocol module found: [artemis-mqtt-protocol]. Adding protocol support for: > MQTT > 21:31:10,272 INFO [org.apache.activemq.artemis.core.server] AMQ221043: > Protocol module found: [artemis-openwire-protocol]. Adding protocol support > for: OPENWIRE > 21:31:10,402 INFO [org.apache.activemq.artemis.core.server] AMQ221043: > Protocol module found: [artemis-stomp-protocol]. Adding protocol support > for: STOMP > 21:31:10,990 INFO [org.apache.activemq.artemis.core.server] AMQ221003: > trying to deploy queue jms.queue.DLQ > 21:31:11,056 INFO [org.apache.activemq.artemis.core.server] AMQ221003: > trying to deploy queue jms.queue.ExpiryQueue > 21:31:11,181 INFO [org.apache.activemq.artemis.core.server] AMQ221020: > Started Acceptor at 0.0.0.0:5672 for protocols [AMQP] > 21:31:11,184 INFO [org.apache.activemq.artemis.core.server] AMQ221020: > Started Acceptor at 0.0.0.0:5445 for protocols [STOMP,HORNETQ] > 21:31:11,187 INFO [org.apache.activemq.artemis.core.server] AMQ221020: > Started Acceptor at 0.0.0.0:1883 for protocols [MQTT] > 21:31:11,189 INFO [org.apache.activemq.artemis.core.server] AMQ221020: > Started Acceptor at 0.0.0.0:61616 for protocols > [STOMP,MQTT,AMQP,OPENWIRE,HORNETQ,CORE] > 21:31:11,191 INFO [org.apache.activemq.artemis.core.server] AMQ221020: > Started Acceptor at 0.0.0.0:61613 for protocols [STOMP] > 21:31:11,191 INFO [org.apache.activemq.artemis.core.server] AMQ221007: > Server is now live > > *RUBY STOMP CLIENT* > > require 'test/unit' > require 'openssl-extensions' > require 'amqp' > require 'onstomp' > > class MyTest < Test::Unit::TestCase > > # Called before every test method runs. Can be used > # to set up fixture information. > > def setup > > end > > # Called after every test method runs. Can be used to tear > # down fixture information. > > def teardown > # Do nothing > end > > # Fake test > # def test_artemis_mqtt > # EventMachine.run do > # connection = AMQP.connect(:host => '127.0.0.1', :user =>'admin', > :pass =>'admin') > # puts "Connected to AMQP broker. Running #{AMQP::VERSION} version of > the gem..." > # > # channel = AMQP::Channel.new(connection) > # queue = channel.queue("PMR2MB", :auto_delete => true) > # exchange = channel.direct("") > # > # queue.subscribe do |payload| > # puts "Received a message: #{payload}. Disconnecting..." > # connection.close { EventMachine.stop } > # end > # > # exchange.publish "Hello, world!", :routing_key => queue.name > # end > # > # end > > def test_onStomp_client > puts "Starting demo" > puts "----------------------------" > > running = true > client = OnStomp::Client.new("stomp://127.0.0.1:61613") > client.connect > > puts "Connected to broker using protocol #{client.connection.version}" > > client.subscribe("/queue/onstomp_test") do |message| > puts "Received: '#{message.body}'" > if message.body == 'finished' > running = false > end > end > > client.send("/queue/onstomp_test", "hello world") > client.send("/queue/onstomp_test", "this is a simple demo of onstomp") > client.send("/queue/onstomp_test", "finished") > > Thread.pass while running > client.disconnect > puts "----------------------------" > puts "End of demo" > end > end > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/I-can-connect-successfully-to-Artemis-using-Stomp-Ruby-client-but-can-t-publish-messages-tp4702742.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. -- Clebert Suconic