Hi Philippe,

thanks for the explanation. After your description of jonas' behavior, I am trying
to minimize the transaction wrapped code to make use of the cache as much as
possible, and it certainly is a performance boost.

thanks again,
ilker

Philippe Durieux wrote:

> Philippe Durieux wrote:
> >
> > "Halas, Miroslav" wrote:
> > >
> > > Weblogic has a configuration parameter on a datasource (or a bean, I don't
> > > remember it correctly) to mark it as 'shared'. Shared means that there is
> > > other application which is modifying database and therefore beans has to be
> > > reread at the beginning of transaction. If the bean/datasource is not marked
> > > as shared than the cached copy is used.
> > >
> > > Can something like this be implemented in Jonas? What would be the best
> > > place to put it in?
> > >
> > > Miro Halas
> > >
> >         Hi Miro,
> >
> > I think that your proposal is not correct. When you work with transactions,
> > you MUST insure that the bean state is written at the end of each transaction,
> > regardless if someone else is using it or not.
> > What is possible with jonas is only to share entity beans if you don't use
> > transactions. In that case, the bean state is kept only in memory until a
> > special event occur (end of server, timeout, start of transaction, ...).
> > This is effective only for beans declared as "Reentrant".
> >
> >         Philippe
> >
> Hello again!
> To be precise, I should say that ejbStore() is mandatory, but ejbLoad()
> could be avoid if we had choosen another policy in JOnAS.
> We have decided in JOnAS to passivate bean instances after each transaction,
> so we must reread the bean state at each begin.
> May be we could think about another policy? 3 possible policies are described
> in EJB specifications, we have chosen one of them. It's not possible to choose
> another one in the deployment descriptor today!
>
> --
> Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Bull - 1 rue de Provence - 38432 Echirolles Cedex France
> [EMAIL PROTECTED]
> -> Download our EJBServer at http://www.evidian.com/ejb <-

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to