Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » [glassfish] EJB and JPA versions(Newest versions not shown in preferences window)
[glassfish] EJB and JPA versions [message #523770] Mon, 29 March 2010 05:20 Go to next message
Eclipse UserFriend
Dear all,

I'd like to know if the following steps are normal when using Eclipse with Glassfish v3 :

- To enable JPA 2.0 (EclipseLink 2.0), I need to go to Window>Preferences> JavaPersistence and then download as a "User Library" the v2.0.1 of EclipseLink. Actually, the only version listed in "Library/Type" combo box is EclipseLink 1.1.x.
The persistance unit provided by Glassfish v3 for Java EE 6 the good libraries (2.0.1).

- I can't see v3.1 of EJB in properties > project facets > EJB Module -> version. The latest I can see is 3.0. But the library in the GlassFish one is the good one 3.1.


- Last question : I tried many ways to make my persistence unit indepedant from the EJB module, but when I build the EAR file, the JPA libraries are not included. If I make only one project containing EJB + Entities, I have no problem. EclipseLink is checked in buildpath > Order and Export and into "Java EE Module dependancies", but remains not included.

Thanks a lot for your help.
Re: [glassfish] EJB and JPA versions [message #524073 is a reply to message #523770] Tue, 30 March 2010 10:52 Go to previous message
Eclipse UserFriend
Since Glasfish v3 bundles JPA EclipseLink, you do not need need to download the libraries as user libraries.
Just select the other value in the combo box:
"Disable Library Configuration"

This option should be by default for Java EE 5 or 6 project types Sad

Also, ejb3.1 facet support is under development (see eclipse 3.6M6 that has still some usability bugs, but it is a start).
For now, you can safely select the 3.0 facet with GlassFish v3 as this server offers the ejb 3.1 APIs to your project and runtime...
Previous Topic:Source folder for test directory?
Next Topic:Eclipse hangs when opening jsp file
Goto Forum:
  


Current Time: Fri Mar 21 16:00:58 EDT 2025

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

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

Back to the top