Engine binding show empty entry set from JRuby Script

The bindings either from engine_scope or global_scope show no entry set
when
accessed inside my jruby script. Will there be a default set of
bindings? My
code is as follows

class RubyTest
puts “Santosh Ruby Test”
driver = HtmlUnitDriver.new

manager = JRubyScriptEngineManager.new
engine_scope = 100
global_scope = 200
engine = manager.getEngineByName(‘jruby’);
context = engine.getContext()

bindings = context.getBindings(engine_scope)

globalBindings = context.getBindings(global_scope)

puts bindings.entrySet
puts globalBindings.entrySet
puts context.methods.sort

end

View this message in context:
http://old.nabble.com/Engine-binding-show-empty-entry-set-from-JRuby-Script-tp32199606p32199606.html
Sent from the JRuby - User mailing list archive at Nabble.com.