HI I started an email discussion with christian, which he liked to see
on the newsgroup.

What I want to talk about is JPA Integration. I see many places were
lazy loading in a rich client would be a great thingy to have. I had a
look ad several existing implementations (most of them are aop hacks)
but nothing satisfied me. Christian told me that so far there is nothing
like that in riena. Gavin King from Hibernate has a strong opinion on
why not to remote lazy load which i can understand. I don't know other
JPA implementations but in hibernate lazy loading is very tightly
coupled to the session and all existing solutions break the
transactional philosophy.

what i recently thought about is having something like a remote session
on top of hibernate (as for eg jackrabbit has). that would mean keeping
an entitymanager/session on the server over several client requests.

I would like to hear what you think about that idea, far off from what
it would take to implement something like that. I agree with christian
that approaches like cdo may not scale well in large environments, and I
wonder if keeping thousands of sessions on the server would scale.

I'm just starting my work to use Riena clients inside my OSGI Enterprise
solution (a german ERP application).
....just focussing on the GUI (Ridgets, databinding, ObjectTransactions)
and so of course I'll run into the Hibernate lazy problem the next weeks ;-)

I have it all running from server-side and provide my EJB3 Interfaces
from EasyBeans as Riena remote OSGI services

ekke

Thomas schrieb:
> HI I started an email discussion with christian, which he liked to see
> on the newsgroup.
>
> What I want to talk about is JPA Integration. I see many places were
> lazy loading in a rich client would be a great thingy to have. I had a
> look ad several existing implementations (most of them are aop hacks)
> but nothing satisfied me. Christian told me that so far there is nothing
> like that in riena. Gavin King from Hibernate has a strong opinion on
> why not to remote lazy load which i can understand. I don't know other
> JPA implementations but in hibernate lazy loading is very tightly
> coupled to the session and all existing solutions break the
> transactional philosophy.
>
> what i recently thought about is having something like a remote session
> on top of hibernate (as for eg jackrabbit has). that would mean keeping
> an entitymanager/session on the server over several client requests.
>
> I would like to hear what you think about that idea, far off from what
> it would take to implement something like that. I agree with christian
> that approaches like cdo may not scale well in large environments, and I
> wonder if keeping thousands of sessions on the server would scale.
>
> Regards
> Thomas

These would work well in an EJB environment, could be backed by Teneo
(I.e., Hibernate, JPOX, JPA and EclipseLink), and integrate well with
data binding... Of course we could generate such things from a .xsd and
produce conforming XML serializations as well...

ekke wrote:
> Thomas,
>
> would be great to have a solution for this.
>
> I'm just starting my work to use Riena clients inside my OSGI
> Enterprise solution (a german ERP application).
> ...just focussing on the GUI (Ridgets, databinding,
> ObjectTransactions) and so of course I'll run into the Hibernate lazy
> problem the next weeks ;-)
>
> at the moment my server-side solution is this:
>
> * equinox 3.4
> * Riena M4
> * EasyBeans OSGI as EJB3 container with Hibernate JPA
>
> I have it all running from server-side and provide my EJB3 Interfaces
> from EasyBeans as Riena remote OSGI services
>
> ekke
>
> Thomas schrieb:
>> HI I started an email discussion with christian, which he liked to
>> see on the newsgroup.
>>
>> What I want to talk about is JPA Integration. I see many places were
>> lazy loading in a rich client would be a great thingy to have. I had
>> a look ad several existing implementations (most of them are aop
>> hacks) but nothing satisfied me. Christian told me that so far there
>> is nothing like that in riena. Gavin King from Hibernate has a strong
>> opinion on why not to remote lazy load which i can understand. I
>> don't know other JPA implementations but in hibernate lazy loading is
>> very tightly coupled to the session and all existing solutions break
>> the transactional philosophy.
>>
>> what i recently thought about is having something like a remote
>> session on top of hibernate (as for eg jackrabbit has). that would
>> mean keeping an entitymanager/session on the server over several
>> client requests.
>>
>> I would like to hear what you think about that idea, far off from
>> what it would take to implement something like that. I agree with
>> christian that approaches like cdo may not scale well in large
>> environments, and I wonder if keeping thousands of sessions on the
>> server would scale.
>>
>> Regards
>> Thomas

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
In case anyone is interested, since it seems somewhat related, I'm just
finishing off a prototype for generating models that support "native"
java.io.Serializeable:<br>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014">https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014</a><br>
</blockquote>
I expect there will be a fully functional patch later today.<br>
<br>
These would work well in an EJB environment, could be backed by Teneo
(I.e., Hibernate, JPOX, JPA and EclipseLink), and integrate well with
data binding...

I'm just starting my work to use Riena clients inside my OSGI Enterprise
solution (a german ERP application).
....just focussing on the GUI (Ridgets, databinding, ObjectTransactions)
and so of course I'll run into the Hibernate lazy problem the next weeks ;-)

I have it all running from server-side and provide my EJB3 Interfaces
from EasyBeans as Riena remote OSGI services

ekke

Thomas schrieb:
> HI I started an email discussion with christian, which he liked to see
> on the newsgroup.
>
> What I want to talk about is JPA Integration. I see many places were
> lazy loading in a rich client would be a great thingy to have. I had a
> look ad several existing implementations (most of them are aop hacks)
> but nothing satisfied me. Christian told me that so far there is nothing
> like that in riena. Gavin King from Hibernate has a strong opinion on
> why not to remote lazy load which i can understand. I don't know other
> JPA implementations but in hibernate lazy loading is very tightly
> coupled to the session and all existing solutions break the
> transactional philosophy.
>
> what i recently thought about is having something like a remote session
> on top of hibernate (as for eg jackrabbit has). that would mean keeping
> an entitymanager/session on the server over several client requests.
>
> I would like to hear what you think about that idea, far off from what
> it would take to implement something like that. I agree with christian
> that approaches like cdo may not scale well in large environments, and I
> wonder if keeping thousands of sessions on the server would scale.
>
> Regards
> Thomas

These would work well in an EJB environment, could be backed by Teneo
(I.e., Hibernate, JPOX, JPA and EclipseLink), and integrate well with
data binding... Of course we could generate such things from a .xsd and
produce conforming XML serializations as well...

ekke wrote:
> Thomas,
>
> would be great to have a solution for this.
>
> I'm just starting my work to use Riena clients inside my OSGI
> Enterprise solution (a german ERP application).
> ...just focussing on the GUI (Ridgets, databinding,
> ObjectTransactions) and so of course I'll run into the Hibernate lazy
> problem the next weeks ;-)
>
> at the moment my server-side solution is this:
>
> * equinox 3.4
> * Riena M4
> * EasyBeans OSGI as EJB3 container with Hibernate JPA
>
> I have it all running from server-side and provide my EJB3 Interfaces
> from EasyBeans as Riena remote OSGI services
>
> ekke
>
> Thomas schrieb:
>> HI I started an email discussion with christian, which he liked to
>> see on the newsgroup.
>>
>> What I want to talk about is JPA Integration. I see many places were
>> lazy loading in a rich client would be a great thingy to have. I had
>> a look ad several existing implementations (most of them are aop
>> hacks) but nothing satisfied me. Christian told me that so far there
>> is nothing like that in riena. Gavin King from Hibernate has a strong
>> opinion on why not to remote lazy load which i can understand. I
>> don't know other JPA implementations but in hibernate lazy loading is
>> very tightly coupled to the session and all existing solutions break
>> the transactional philosophy.
>>
>> what i recently thought about is having something like a remote
>> session on top of hibernate (as for eg jackrabbit has). that would
>> mean keeping an entitymanager/session on the server over several
>> client requests.
>>
>> I would like to hear what you think about that idea, far off from
>> what it would take to implement something like that. I agree with
>> christian that approaches like cdo may not scale well in large
>> environments, and I wonder if keeping thousands of sessions on the
>> server would scale.
>>
>> Regards
>> Thomas

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
In case anyone is interested, since it seems somewhat related, I'm just
finishing off a prototype for generating models that support "native"
java.io.Serializeable:<br>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014">https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014</a><br>
</blockquote>
I expect there will be a fully functional patch later today.<br>
<br>
These would work well in an EJB environment, could be backed by Teneo
(I.e., Hibernate, JPOX, JPA and EclipseLink), and integrate well with
data binding...