Hi all,

I just want you to let you know, that Trinidad[1], a simple library to
run rails and rackup applications into an embedded Apache Tomcat, has
now a "lifecycle extension"[2]. From the README:

--8--
module Trinidad
  module Lifecycle
    module WebApp
      import org.apache.catalina.LifecycleListener
      import org.apache.catalina.Lifecycle

      class WebAppListener
        include LifecycleListener

        def lifecycleEvent(event)
          if Lifecycle::BEFORE_START_EVENT == event.type
            # do something before start the web application context
          end
        end
      end
    end
  end
end
--8--

The events are defined in the Tomcat Lifecicle source code[3].

The code is pretty alpha, but I encourage you to test it and report
bugs/suggestions. Many thanks to David Calavera, who after listening
to my rants, gave in and implemented this nifty feature. As for me, I
will try to implement this for Glassfishv3. Any help is welcomed :-)

Regards,
//Nando

[1] http://github.com/calavera/trinidad
[2] http://github.com/calavera/trinidad_lifecycle_extension
[3] 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Lifecycle.java?view=markup


On Sep 9, 2:57 pm, John Mettraux <[email protected]> wrote:
> On Thu, Sep 09, 2010 at 02:51:59PM +0200, Asier wrote:
> > El 09/09/2010 14:46, Gonzalo Suarez escribi :
>
> > >We haven't used ruote-kit or ruote 2.1.x much yet. But as far as I
> > >understand, the issue has little to do with ruote or ruote-kit. The
> > >problem appears when running ruote inside a Java application server
> > >with jruby. As Asier states, ruote-kit may be warbled and thrown into
> > >a Glassfish. But, what happens with the engine when I stop the
> > >Glassfish server? I guess two things should happen:
>
> > >1. The server stops listening
> > >2. The engine (ruote) should stop (persist all expressions to disk,
> > >close files, etc...)
>
> > >I think the second step would not happen. But this is a guess... I
> > >haven't tried it. I know this behavior happened to us with ruote-rest
> > >+ glassfish in the past...
>
> > Uff, that could have dramatic consequences if a critical transaction is 
> > broken :-o
>
> > (and Murphy's law allways is against us)
>
> > I don't know how to solve this.
>

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to