This file contains hidden or 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
.bundle | |
bundle |
This file contains hidden or 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
require 'torquebox/messaging' | |
require 'torquebox/messaging/connection_factory' | |
require 'torquebox/messaging/destination' | |
module TorqueBox | |
module Messaging | |
class Destination | |
def publish_each(messages, options = {}) | |
wait_for_destination(options[:startup_timeout]) do | |
with_session(options) do |session| |
This file contains hidden or 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
# encoding: utf-8 | |
class StringUtilsMock | |
def self.underscore(name); name.underscore; end | |
end | |
JavaUtilities.class_eval do | |
class << self | |
alias_method :get_proxy_or_package_under_package_original, :get_proxy_or_package_under_package | |
def get_proxy_or_package_under_package(obj, sym) |
This file contains hidden or 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
=begin | |
$ uname -a | |
Linux jboss-updater2 3.2.21-nkt #1 SMP Wed Aug 1 20:23:57 CEST 2012 x86_64 GNU/Linux | |
$ java -version | |
java version "1.7.0_03" | |
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-2) | |
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) | |
$ jruby --version |
This file contains hidden or 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
# ... | |
options = {properties: {}} | |
options[:properties]['_HQ_SCHED_DELIVERY'] = Time.now.to_i * 1000 + 30.seconds * 1000 # milis | |
download_queue.publish({message: {photo_id: photo.id}}, options) |
This file contains hidden or 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
source :rubygems | |
gem 'rack' | |
gem 'json' | |
gem 'torquebox-rake-support' | |
gem 'rdiscount' | |
NewerOlder