No issue. If @Stateful beans live through shutdown/restart of TomEE, then
when will @Stateful bean passivate?


On Sun, Nov 25, 2012 at 2:34 AM, Romain Manni-Bucau
<rmannibu...@gmail.com>wrote:

> What's the issue?
> Le 25 nov. 2012 08:33, "Howard W. Smith, Jr." <smithh032...@gmail.com> a
> écrit :
>
> > Any way to prevent @Stateful from being re-injected on when TomEE starts,
> > or it's best for me to use @Stateless instead of @Stateful?
> >
> >
> > On Sun, Nov 25, 2012 at 2:27 AM, Romain Manni-Bucau
> > <rmannibu...@gmail.com>wrote:
> >
> > > Yes it is.
> > >
> > > If you want to save data between startups you can use the session
> itself
> > > Le 25 nov. 2012 07:57, "Howard W. Smith, Jr." <smithh032...@gmail.com>
> a
> > > écrit :
> > >
> > > > If stateful beans were injected after server was started, are the
> same
> > > > stateful beans re-injected automatically by TomEE when TomEE
> restarts?
> > > >
> > > > I ask this question, because I see the following after restarting
> TomEE
> > > > (after shutdown TomEE without logging out of user sessions in
> > browsers):
> > > >
> > > > INFO: Deployed
> > > > Application(path=C:\apache-tomee-plus-1.5.1-SNAPSHOT\webapps\tomee)
> > > > Nov 25, 2012 1:48:57 AM org.apache.coyote.AbstractProtocol start
> > > > INFO: Starting ProtocolHandler ["http-bio-8080"]
> > > > Nov 25, 2012 1:48:57 AM org.apache.coyote.AbstractProtocol start
> > > > INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> > > > Nov 25, 2012 1:48:57 AM org.apache.catalina.startup.Catalina start
> > > > INFO: Server startup in 15257 ms
> > > > *UsersStatefulBean() constructor/injected*
> > > > *UsersStatefulBean() constructor/injected*
> > > >
> > > > Is this normal behavior or working as designed? Those 2 stateful
> beans
> > > were
> > > > injected while TomEE was running prior before shutdown-and-restart.
> > > >
> > > > Thanks,
> > > > Howard
> > > >
> > >
> >
>

Reply via email to