[ajug-members] Issue when moving from EJB 2.x to EJB 3.0 entities under WebLogic
silveranvil at gmail.com
Mon Mar 24 20:11:12 EDT 2008
It's a legacy app and we're trying not to change how things work too much as
we migrate to EJB 3.0. I don't agree with what they were doing either, but
unless we change the design we've got to try to make the new version work
like (but faster than) the old one.
On Mon, Mar 24, 2008 at 6:27 PM, Rob Worsnop <rworsnop at gmail.com> wrote:
> To force updates past the write-behind cache, you can call
> EntityManager.flush. I'm not aware of a way of disabling the
> write-behind cache globally in either Hibernate or OpenJPA. I suppose
> you could proxy the entity manager and have the proxy call flush after
> delegating each update call.
> Why you would want to do this is another matter. :)
> On Mon, Mar 24, 2008 at 1:29 PM, SilverAnvil <silveranvil at gmail.com>
> > Hello fellow AJUGers,
> > I'm working on a project where we're updating an existing code base from
> > 2 to EJB 3 and ran into a problem that I'm hoping someone here has
> > solved.
> > In our 2.x beans, we're using the delay-updates-until-end-of-tx element
> > our weblogic-ejb-jar.xml file and setting the value to FALSE so that the
> > WebLogic server will call ejbStore() after each method call, which
> > the database but doesn't commit the data so we can still roll back if
> > necessary.
> > Is there an equivalent under JPA? We're currently using OpenJPA, which
> > the default for WebLogic 10, but can probably switch to Hibernate if
> > necessary.
> > Thanks for any help you can give,
> > Burk Hufnagel
> > (Speaker at our next meeting. And no, the topic isn't EJB 3.0 or JPA.)
> > --
> > "The only rules that really matter are these: what a man can do and what
> > man can't do." Captain Jack Sparrow
> > _______________________________________________
> > ajug-members mailing list
> > ajug-members at ajug.org
> > http://www.ajug.org/mailman/listinfo/ajug-members
> ajug-members mailing list
> ajug-members at ajug.org
"The only rules that really matter are these: what a man can do and what a
man can't do." Captain Jack Sparrow
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ajug-members