Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7986
| From | Arved Sandstrom <asandstrom3minus1@eastlink.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JSF/JPA problem |
| References | <j4nvr9$4ld$1@dont-email.me> |
| Message-ID | <VZObq.20744$oz6.19581@newsfe11.iad> (permalink) |
| Organization | Public Usenet Newsgroup Access |
| Date | 2011-09-13 17:24 -0300 |
On 11-09-13 01:19 PM, markspace wrote: > Hi all, I'm playing around with JSF and JPA on a personal project and > I've got a problem I haven't been able to figure out. Basically no > matter what I do in a certain bit of code, I always get a JPA error that > there is no transaction available for the current thread. [ SNIP ] You're using application-managed entity managers because of your use of an EntityManagerFactory. You must therefore use EntityTransaction. If you want container-managed then inject with @PersistenceContext, and specify JTA in your persistence.xml (Note: with application-managed you'd typically have RESOURCE_LOCAL). AHS -- job creator: US Republican term for a wealthy party contributor
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
JSF/JPA problem markspace <-@.> - 2011-09-13 09:19 -0700
Re: JSF/JPA problem Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-13 17:24 -0300
Re: JSF/JPA problem Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-13 17:40 -0300
Re: JSF/JPA problem markspace <-@.> - 2011-09-13 15:38 -0700
Re: JSF/JPA problem markspace <-@.> - 2011-09-13 17:06 -0700
Re: JSF/JPA problem Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-13 22:28 -0300
Re: JSF/JPA problem Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-13 22:31 -0300
Re: JSF/JPA problem markspace <-@.> - 2011-09-13 19:27 -0700
Re: JSF/JPA problem Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-14 05:59 -0300
Re: JSF/JPA problem markspace <-@.> - 2011-09-14 10:36 -0700
Re: JSF/JPA problem Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-14 17:51 -0300
Re: JSF/JPA problem markspace <-@.> - 2011-09-13 16:12 -0700
csiph-web