Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP with JPA/Eclipselink Shell for Glassfish(Trying to find a kickstart)
RAP with JPA/Eclipselink Shell for Glassfish [message #523355] Fri, 26 March 2010 06:17 Go to next message
Lawrence G is currently offline Lawrence GFriend
Messages: 12
Registered: July 2009
Junior Member
I've been looking for some info on how to set up a simple shell project in RAP that utilizes JPA/Eclipselink for persistence for weeks now, and have found some threads in here that get close, but don't quite address it. I've been developing RCP apps with JPA or Cayenne as the ORM, and am trying to learn how to migrate to something in RAP that'll eventually run in Glassfish, but just can't seem to locate the correct materials. Sorry for the general question, but does anyone know where to direct a J2EE neophyte who wants to get RAP kick-started?

Thanks in advance---Lawrence
Re: RAP with JPA/Eclipselink Shell for Glassfish [message #523831 is a reply to message #523355] Mon, 29 March 2010 14:36 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Lawrence,

dealing with JPA in RAP shouldn't be much different from RCP. In [1]
there is a discussion as where to best open/close the JPA
conversation/session.
Please note that RAP isn't about J2EE but rather RCP in a multi-user
environment. Or, if you leave the workbench aside, it is a widget
toolkit with SWT API for the web.
Since I don't know what you read or didn't read so far, the following is
a random list of what should help you to get started:
http://www.eclipse.org/rap/gettingstarted.php
http://www.eclipse.org/rap/documentation.php
http://www.vogella.de/articles/EclipseRAP/article.html

HTH
Rüdiger

[1] http://www.eclipse.org/forums/index.php?t=tree&th=164814 &

--
Rüdiger Herrmann
http://eclipsesource.com

On 26.03.2010 07:17, Lawrence G wrote:
> I've been looking for some info on how to set up a simple shell project
> in RAP that utilizes JPA/Eclipselink for persistence for weeks now, and
> have found some threads in here that get close, but don't quite address
> it. I've been developing RCP apps with JPA or Cayenne as the ORM, and am
> trying to learn how to migrate to something in RAP that'll eventually
> run in Glassfish, but just can't seem to locate the correct materials.
> Sorry for the general question, but does anyone know where to direct a
> J2EE neophyte who wants to get RAP kick-started?
>
> Thanks in advance---Lawrence
Re: RAP with JPA/Eclipselink Shell for Glassfish [message #524197 is a reply to message #523831] Wed, 31 March 2010 07:03 Go to previous messageGo to next message
Lawrence G is currently offline Lawrence GFriend
Messages: 12
Registered: July 2009
Junior Member
Thanks for the response, Rüdiger, and the links. I have actually read each of these before, and I haven't had too much trouble getting RAP to run and behave as I expect from the functionality side, which is the topic most all of these tutorials, like Lars' excellent tutorial, covers. My problem is that I use JPA configured for a Connection/transaction type of "Resource Local," and the same settings, dependencies, etc. no longer work when I set up and RAP app.

Thus, I know that I need to venture into setting it up to use JTA and deploying the app in a WAR to Glassfish but, try as I might, I cannot locate anything outlining creating a simple RAP app with CRUD operations and deploying in any web container. It's the CRUD that's crucial to configure. I know this is newbie for many on this message board, but I'm really just trying to find the correct material. Bought the APress book on RAP and read it cover to cover, but there's nothing. Once I find the simplest of examples on how to configure, I'll be off and running.

Do you know of any materials along those lines? I contacted EclipseSource as well to see if they sell anything (training, reference, anything), and I can't even get a response when willing to pay. I know that RAP is going to do what I need, ultimately--this is the frustrating period.

Thanks again,

Lawrence
Re: RAP with JPA/Eclipselink Shell for Glassfish [message #524369 is a reply to message #524197] Wed, 31 March 2010 11:48 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Lawrence,

as I understand, you have a running RCP app with JPA in a JavaSE
environment. What I don't understand is what "configured for a
Connection/transaction type of "Resource Local"" means.

However, you should be able to run from within your IDE "as is" once you
decided where to open and close the EntityManager. Please see below for
a discussion on that topic:
http://www.eclipse.org/forums/index.php?t=tree&th=164814 &

Integration with JTA and deploying as a WAR should be considered once
the simple things work. For JTA, I don't know how it works or what the
benefit is, the deployment should then be no problem.

HTH
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com

On 31.03.2010 09:03, Lawrence G wrote:
> Thanks for the response, Rüdiger, and the links. I have actually read
> each of these before, and I haven't had too much trouble getting RAP to
> run and behave as I expect from the functionality side, which is the
> topic most all of these tutorials, like Lars' excellent tutorial,
> covers. My problem is that I use JPA configured for a
> Connection/transaction type of "Resource Local," and the same settings,
> dependencies, etc. no longer work when I set up and RAP app.
> Thus, I know that I need to venture into setting it up to use JTA and
> deploying the app in a WAR to Glassfish but, try as I might, I cannot
> locate anything outlining creating a simple RAP app with CRUD operations
> and deploying in any web container. It's the CRUD that's crucial to
> configure. I know this is newbie for many on this message board, but I'm
> really just trying to find the correct material. Bought the APress book
> on RAP and read it cover to cover, but there's nothing. Once I find the
> simplest of examples on how to configure, I'll be off and running.
>
> Do you know of any materials along those lines? I contacted
> EclipseSource as well to see if they sell anything (training, reference,
> anything), and I can't even get a response when willing to pay. I know
> that RAP is going to do what I need, ultimately--this is the frustrating
> period.
>
> Thanks again,
>
> Lawrence
Previous Topic:Externailze Css
Next Topic:EMF RAP and Tomcat deployment
Goto Forum:
  


Current Time: Fri Apr 19 05:31:44 GMT 2024

Powered by FUDForum. Page generated in 0.01447 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top