JSF and Rails (using Jruby) sharing sessions

This is likely a shot in the dark but has anyone ever done session
sharing between rails and JSF inside of tomcat? I am highly motivated
to get these working next to each other but I am trying to get all the
issues nailed out.

Cheers!
Jack