On Fri, Apr 10, 2009 at 7:37 PM, steve_molitor firstname.lastname@example.org
Thanks, I got two sinatra apps WARed up in one war, running fine so far. In
the ru file, for the sinatra apps, I just instantiate the app, which extends
Sinatra::Base, and say ‘run app’. What’s the best way to start a Rails app
in this situation?
Also, can I set things up such that each app gets its own JRuby runtime?
Requests for each app would be multithreaded within that runtime. I worried
about two apps defining a class with the same name.
That should be possible, but not without you rolling up your
sleeves a bit. Right now the web app servlet context attributes
expects only a single RackApplicationFactory per app; you’ll have to
make it multi-app-factory-aware.
You’ll probably also need to map several copies of the RackFilter,
and make each filter use its own rack factory (see 1).
Hope that gives you enough of a hint to get started!
To unsubscribe from this list, please visit: