Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-680

Following documentation for publishing to a remote queue inside a jruby script results in failure.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.Beta1
    • Fix Version/s: 2.0.0.Beta3
    • Component/s: Documentation, Messaging
    • Environment:

      Ubuntu Linux 10.04 64Bit, RVM JRuby 1.6.5 torquebox 2.0.0.Beta1 gems
      Windows 2008 R2 torquebox 2.0.0.Beta1 binary installation with included jruby.

      Description

      After reading Section 7.3 (Example 7.6) http://torquebox.org/2x/builds/html-docs/messaging.html#messaging-ruby-classes and Section 7.4.1.1 (Example 7.9) http://torquebox.org/2x/builds/html-docs/messaging.html#messaging-abstractions of the documentation I wrote what I believe to be a valid test script (Basically copy/paste).

      require 'rubygems'
      require 'torquebox-messaging'

      queue = TorqueBox::Messaging::Queue.new('/queues/foo', :naming_host => 'jndi.jboss.org', :naming_port => 1099)
      queue.publish "Some message"

      However running this script results in the following error:

      $ jruby test.rb
      NameError: uninitialized constant TorqueBox
      const_missing at org/jruby/RubyModule.java:2590
      (root) at test.rb:4

      If my simple code is incorrect and this is expected behaviour then I think the documentation needs to be modified to be clearer.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  benbrowning Ben Browining
                  Reporter:
                  rurounijones Jeffrey Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: