tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Ozeas <gabriel.oze...@gmail.com>
Subject Re: How @Stateful instance be reused?
Date Tue, 24 Jan 2012 18:23:42 GMT
Hi Jacek,

According to Oreilly Enterprise JavaBeans, you can chain stafeful session
beans. But this practice is not recomended because if some bean turns
invalid, all the conversation state of the chain will become too.

You can use stateless session bean inside stateful session beans normally.
This is what most happens.

Use a statefull session bean inside stateless session bean don't make
sense, because you cannot access the conversational state of the statefull
outside the scope of stateless' method.

Bye bye

2012/1/24 Jacek Laskowski <jacek@japila.pl>

> Hi,
>
> Is it possible to reuse @Stateful in a chain of calls as follows:
>
> A client A calls a B bean that in turns calls a @Stateful C bean. How
> can I get at the instance of @Stateful C in A? Is it possible at all?
>
> Jacek
>
> --
> Jacek Laskowski
> Java EE, functional languages and IBM WebSphere - http://blog.japila.pl
> Warszawa JUG conference = Confitura (formerly Javarsovia) ::
> http://confitura.pl
> "Hoping to save time by spending it" by David Blevins (Apache OpenEJB)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message