Sha256: 95cc7c3fab9b5687d3b997d7cbb11288dbf7087ed768dc079932b7318b9ca7a1

Contents?: true

Size: 1000 Bytes

Versions: 5

Compression:

Stored size: 1000 Bytes

Contents

include Java

module HornetQ

  # Netty Class name
  NETTY_CONNECTOR_CLASS_NAME = 'org.hornetq.core.remoting.impl.netty.NettyConnectorFactory'
  NETTY_ACCEPTOR_CLASS_NAME  = 'org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory'
  INVM_CONNECTOR_CLASS_NAME  = 'org.hornetq.core.remoting.impl.invm.InVMConnectorFactory'
  INVM_ACCEPTOR_CLASS_NAME   = 'org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory'

  DEFAULT_NETTY_PORT     = java.lang.Integer.new(5445)
  DEFAULT_DATA_DIRECTORY = './data'

  # Allow override of our included jars so we don't have to keep up with hornetq releases
  def self.require_jar(jar_name)
    if ENV['HORNETQ_HOME']
      require "#{ENV['HORNETQ_HOME']}/lib/#{jar_name}.jar"
    else
      require "hornetq/java/#{jar_name}.jar"
    end
  end

  def self.netty_port(port)
    port ||= DEFAULT_NETTY_PORT
    return java.lang.Integer.new(port)
  end

end

require 'hornetq/server'
require 'hornetq/client'
require 'hornetq/uri'
require 'hornetq/common/logging'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jruby-hornetq-0.3.3 lib/hornetq.rb
jruby-hornetq-0.3.2 lib/hornetq.rb
jruby-hornetq-0.3.1 lib/hornetq.rb
jruby-hornetq-0.3.0.alpha lib/hornetq.rb
jruby-hornetq-0.2.5.alpha lib/hornetq.rb