JDeveloper installation appears to have the wrong Persistence class

I'm trying to use EJBs for the first time, and have run into a problem initialising an EntityManagerFactory. The examples I've been looking at use something like:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("<persistence unit name>");
However, this gives me a compilation error. In my installation, the only valid forms of javax.persistence.Persistence.createEntityManager take no parameters, and a Map parameter, respectively.
I can't find any documentation on these forms of procedure!
I'm using JDeveloper 10.1.3.0.4, EJB 3.0, J2SE 1.5.0_05. The version of the Persistence class my project is using is in <jdev_home>\j2ee\home\lib\persistence.jar
Any help will be appreciated.

It's almost certainly some kind of version issue, but my JDeveloper explicitly supports EJB 3.0, so it must be possible to get it working. The biggest problem is that I can't find any documentation whatsoever of the version of the Persistence class I have, let alone examples of using it.
Ideally, I'd like to know which version of which libraries I need to upgrade to to use the current specification, and whether I can do this without corrupting my JDev installation. But I'd settle for just finding out how the version I do have is supposed to work.

Similar Messages

Maybe you are looking for

  • Vendor down payment

    Hi, is it possible to pay vendor down payment with F-58 (not F-48) after dowing a request by F-47 ? what is the consequences of that, and what is the procedure that i must follow  ? i hope your help regards

  • How to define the number of tab displayed in Tab page group

    Hello, I have an application with Tab Page group  with 8 tabs and the browser is displaying only 5 of thems. I have to scroll to display the remaining 3 although I have enough spaces on the screen to displayed all of them. Do you know what parameter/

  • Where can I buy an iPhone 3G?

    Everyone tells me with in an Apple store or an ATT store. I have called every Apple and ATT store in my entire state and they are all sold out. They are sold out EVERY DAY for the past week. So, where do I buy an iPhone 3G?

  • Problem while passing parameters for dashboard prompts in URL

    Hi, We have created a dashboard on OBI which has some dashboard prompts. We have a requirement that we shall open the dashboard from an external application. We are doing this by invoking an URL. We want the dashboard to turn with prompts already bei

  • Passing param from UIX Master-Deatil to Search form

    OK This seems to be little bit advanced question (at least for me). Say I have two UIX pages 1. The first page (P1) contains Master Detail view of some table T1(ID1, ID2, ID3). 2. The second page (P2) is UIX search phase created from from the view of