|
Re: Whats going wrong? [message #1125073 is a reply to message #1124182] |
Fri, 04 October 2013 06:08 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ludwig,
Comments below.
On 03/10/2013 11:08 AM, Ludwig Moser wrote:
> Hello
>
> I started with an RCP Application and Eclipse 3.
> It is supposed to grab data from a Database, modify the data and write
> it back to database. thats the most simple thing when it comes to
> software development.
It's not really all that simple to access databases via Java, so there
are lots of technology layers to hide the horrible complexity when you
want to do something more specific than a "simple" JDBC call.
>
> we use EMF this resulted in troubles with Hibernate (loading lists was
> not possible).
Did you ask Martin on the EMF newsgroup about any Teneo issues you
encountered? Or mostly you concluded that no one can use Teneo?
> therefore we switched to EclipseLink.
So clearly you want something more than just JDBC...
> EclipseLink uses JPA, which only works with Gemini in Eclipse.
I thought Teneo also used that and I know that Teneo provides
EclipseLink integration, although I'm not sure must has been invested
into that over the past years...
> Gemini is only working as we want with the extension DI. DI is using
> injection, which is only available in Eclipse 4.
> JPA with osgi is a problem.
Oh, and EclipseLink didn't solve that and their forum wasn't able to get
you started, so mostly you concluded that no one can use EclipseLink?
>
> so i started with a simple problem, which evolved to a real monster
> bringing me more and more complex code with even more problems.
Perhaps a more general forum such as StackOverflow will produce more
general answers...
>
> what is everybody else developing, as noone can help with these simple
> problems?
You asked for help and didn't get it?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Whats going wrong? [message #1125094 is a reply to message #1125073] |
Fri, 04 October 2013 06:30 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
i do not say people are not able to use this or that tool.
I'm not using teneo.
EclipseLink, JPA, Gemini, Gemini DI.
i'm just wondering noone else runs into the problems i get, as what i do seems pretty simple to me.
eg: EclipseLink uses Refreshing for Lazy loading (weaving)
when you use Gemini DI you need to disable refreshing, because otherwise your UI freezes.
afaik EclipseLink was TopLink before, so it should be a mature piece of code. we were able to find several bugs (they got confirmed (and new))
i am not moaning about these tools, as i am happy someone already did it.
but as noone else found these problems i wonder how/what other people are developing.
is everybody (who is using java and eclipse) out for web development.
i'm not asing for help (directly).
i just try to find out if i choose the wrong way (wrong tools) to reach my goal.
DataBase access with lazy loading in osgi (with an emf based model) <- thats what i need
EDIT: i now got dbaccess working, but lazy loading still fails
[Updated on: Fri, 04 October 2013 06:30] Report message to a moderator
|
|
|
Re: Whats going wrong? [message #1125104 is a reply to message #1125094] |
Fri, 04 October 2013 06:44 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ludwig,
Comments below.
On 04/10/2013 8:30 AM, Ludwig Moser wrote:
> i do not say people are not able to use this or that tool.
No, I was just reading below the lines...
> I'm not using teneo.
But you said you tried it and it didn't work.
> EclipseLink, JPA, Gemini, Gemini DI.
>
> i'm just wondering noone else runs into the problems i get, as what i
> do seems pretty simple to me.
Yes, I can see how sometime you wonder how anyone is able to use some
technology. That's like when I looked at http://eclipse.org/lyo/ and
found out that they don't provide OSGi bundles at all? So how does
anyone use this to build an Eclipse application. Goodness only
knows... Apparently no one uses it to build Eclipse applications. So
what kind of applications is it used to build? Goodness only knows...
> eg: EclipseLink uses Refreshing for Lazy loading (weaving)
> when you use Gemini DI you need to disable refreshing, because
> otherwise your UI freezes.
> afaik EclipseLink was TopLink before, so it should be a mature piece
> of code.
Yes, that's definitely the case.
> we were able to find several bugs (they got confirmed (and new))
>
> i am not moaning about these tools, as i am happy someone already did it.
Yes, a free lunch doesn't imply it tastes good, and of course if it
doesn't you could like for another one or find somewhere to buy it, in
which case you could complain that it's full of bugs and ask for a refund.
> but as noone else found these problems i wonder how/what other people
> are developing.
> is everybody (who is using java and eclipse) out for web development.
Perhaps everyone else when they run into the "my UI freezes" issue they
change their code so whatever is very slow isn't done on the UI thread...
>
> i'm not asing for help (directly).
> i just try to find out if i choose the wrong way (wrong tools) to
> reach my goal.
>
> DataBase access with lazy loading in osgi (with an emf based model) <-
> thats what i need
You might try CDO; it pretty much has an optimal laziness design, with a
huge advantage that most of this is completely transparent to the rest
of the application working directly with the model... I think it has
alternative back ends you could try. You should also ensure/confirm
that your Teneo problems don't already have a simple solution...
>
> EDIT: i now got dbaccess working, but lazy loading still fails
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03348 seconds