JavaSessionStore in Rails 3

  • From: <andrew.avenoso@nearinfinity.com>
  • To: talk@jruby-rack.kenai.com
  • Subject: JavaSessionStore in Rails 3
  • Date: Tue, 5 Oct 2010 17:53:57 +0000 (GMT)

I am trying to get the JavaSessionStore working in my JRuby on Rails 3
app.
I had it working with Rails 2 and wrote this blog post about it.
http://www.nearinfinity.com/blogs/andrew_avenoso/session_storage_in_jru
by_on_ra.html

I have been unable to figure out how to get it working with Rails 3
though

I am using jruby-rack 1.0.3
warbler 1.2.1
rails 3.0.0
jruby 1.5.2

I tried a few things
MyApp::Application.config.session_store = :java_servlet_store
This did nothing, it was still a cookie store

require 'action_controller/session/java_servlet_store'
causes a no such file to load error

require 'jruby-rack'
require JRubyJars.jruby_rack_jar_path
require 'action_controller/session/java_servlet_store'
causes an uninitialized constant
ActionController::Session::JavaServletStore::AbstractStore


I'm not sure if this is a bug in jruby-rack, or if I just don't know
the proper way to setup the JavaServletStore.

Help please,
Andrew


JavaSessionStore in Rails 3

andrew.avenoso 10/05/2010
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close