You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
require 'torquespec'
require 'torquebox-core'
require 'torquebox-messaging'
require 'spec_helper'
require 'capybara'
app = <<-END.gsub(/^ {4}/,'')
application:
root: #{File.dirname(__FILE__)}/../../../app
env: test
queues:
/queues/async_mails_manual:
END
describe 'inside torquebox' do
deploy(app)
it "should send" do
#Have tried with TorqueBox.fetch here before, didnt work either
queue = TorqueBox::Messaging::Queue.new '/queues/async_mails_manual'
p queue
p queue.count_messages
queue.publish("message_test")
p queue.count_messages
end
end
The output:
/home/gaf/.rvm/gems/jruby-1.7.9/gems/simplecov-0.7.1/lib/simplecov.rb:34 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
The signal KILL is in use by the JVM and will not work correctly on this platform
"/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java" -Xms512m -Xmx3000m -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.boot.log.file="/home/gaf/Work/etc/torquebox-3.0.2/jboss/standalone/log/boot.log" -Dlogging.configuration=file:"/home/gaf/Work/etc/torquebox-3.0.2/jboss/standalone/configuration/logging.properties" -jar "/home/gaf/Work/etc/torquebox-3.0.2/jboss/jboss-modules.jar" -mp "/home/gaf/Work/etc/torquebox-3.0.2/jboss/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir="/home/gaf/Work/etc/torquebox-3.0.2/jboss"
pid=17088
Waiting up to 120s for JBoss to boot
JBoss started in 9s
deploy /home/gaf/Work/d/api/.torquespec/inside_torquebox-knob.yml in 0s
#<TorqueBox::Messaging::Queue:0x63ee09a8 @name="/queues/async_mails_manual", @enumerable_options={}, @connect_options={}, @connection_factory=#<TorqueBox::Messaging::ConnectionFactory:0x20bc27d9 @tm=nil, @internal_connection_factory=nil>>
nil
nil
Good day, I have some problems with the queues.
The output:
So instead of 0 I'm getting nil here and the message isn't published. Have used an advice from here http://stackoverflow.com/questions/17057616/torquebox-torquespec-testing-queues-cant-be-fetched-in-remote-describe-block , but still cant make it work. Any ideas?