Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Serious bug in EclipseLink sequencepre-allocation

Hi Chris,

The details are that the context is per definition no longer available
afaik. What astonishes me is that TopLink Essentials still provides
some kind of extended context unexpectedly, so, may be, one could say,
TLE has the context while EclipseLink doesn't. I enjoyed that feature
and utilised it in the web tier.

I have a plain vanilla transaction scoped Entitymanager in a stateless
session bean. The web tier calls a session bean method and works with
the entity returned by the session bean.

The feature broke when I switched to EclipseLink. I was not surprised
as I had I annotated my code with warnings.

My question is whether this behavior which is probably a TopLink
Essentials feature that does not conform with the specification, is
something that can be had by other means or whether I should just
forget about it, or whether I should file a bug against TLE?

Many thanks again,


On Wed, 17 Mar 2010 09:32:43 -0400, you wrote:

>Hello Bernard,
>EclipseLink still allows access to lazy relationships if the context is 
>still available., the same as in TLE. 
>Can you give more details on what you are referring to and if 
>serialization is involved? Could this be related to bug 237358?
>If it is the issue in 237358 note that TLE would eagerly fetch all 
>non-relationships; the solution is to make them eager to get the TLE 
>behavior until EclpseLink
>can allow initializing lazy attributes outside the context like it does 
>bht@xxxxxxxxxxxxx wrote:
>> Hi,
>> I noticed a difference between TopLink Essentials and EclipseLink. 
>> Outside a session bean method of a transaction scoped Entitymanager,
>> TopLink Essentials would retrieve lazily fetched properties, leading
>> to traceable database calls. That does not work in EclipseLink.
>> Can I just forget about this "feature" or is there a supported method
>> of fetching this way (read only of course). I understand this sounds a
>> bit messy, because it may cause resource leak issues, but I am asking
>> because it DID work.
>> Many thanks,
>> Bernard
>> _______________________________________________
>> eclipselink-users mailing list
>> eclipselink-users@xxxxxxxxxxx
>eclipselink-users mailing list

Back to the top