Created
August 20, 2013 03:10
-
-
Save arielvalentin/6276714 to your computer and use it in GitHub Desktop.
Torquebox Messaging JMS Exception "There is no queue with name"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns="urn:hornetq" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd"> | |
<!-- Connection factory stuff --> | |
<queue name="DissemQueue"> | |
<entry name="/queues/DissemQueue"/> | |
</queue> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> queue = TorqueBox::Messaging::Queue.new('/queues/DissemQueue', :host => 'jms.example.com', :port => 5445, :username => 'guest', :password => 'guest') | |
=> #<TorqueBox::Messaging::Queue:0x4261387f @name="/queues/DissemQueue", @enumerable_options={}, @connect_options={:host=>"jms.example.com", :port=>5445, :username=>"guest", :password=>"guest"}, @connection_factory=#<TorqueBox::Messaging::ConnectionFactory:0x373835ba @internal_connection_factory=nil>> | |
>> queue.publish('some message') | |
Java::JavaxJms::JMSException: There is no queue with name /queues/DissemQueue | |
from org.hornetq.jms.client.HornetQSession.createQueue(HornetQSession.java:407) | |
from sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) | |
from sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
from java.lang.reflect.Method.invoke(Method.java:606) | |
from org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:455) | |
from org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:316) | |
from org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:61) | |
from org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:127) | |
from org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:86) | |
from org.jruby.RubyClass.finvoke(RubyClass.java:618) | |
from org.jruby.RubyBasicObject.send19(RubyBasicObject.java:1709) | |
from org.jruby.RubyKernel.send19(RubyKernel.java:2213) | |
from org.jruby.RubyKernel$INVOKER$s$send19.call(RubyKernel$INVOKER$s$send19.gen) | |
from org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrTwoOrNBlock.call(JavaMethod.java:364) | |
from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202) | |
from rubyjit.TorqueBox::Messaging::Session$$java_destination_95B4366AA6BB5FE700269498E9F29771D043C8E5412498739.__file__(/opt/datarouter/vendor/bundle/jruby/1.9/gems/torquebox-messaging-2.3.2-java/lib/torquebox/messaging/session.rb:156) | |
... 226 levels... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> queue = TorqueBox::Messaging::Queue.new('DissemQueue', :host => 'jms.example.com', :port => 5445, :username => 'guest', :password => 'guest') | |
=> #<TorqueBox::Messaging::Queue:0x5b3dea1 @name="DissemQueue", @enumerable_options={}, @connect_options={:host=>"jms.example.com", :port=>5445, :username=>"guest", :password=>"guest"}, @connection_factory=#<TorqueBox::Messaging::ConnectionFactory:0x4a1b16bd @internal_connection_factory=nil>> | |
>> queue.publish('hello') | |
=> #<TorqueBox::Messaging::MarshalMessage:0x1cc08870 @jms_message=#<Java::OrgHornetqJmsClient::HornetQBytesMessage:0x78cde302>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment