Anonymous | Login | Signup for a new account | 12-17-2024 08:40 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002498 | [Resin] | minor | always | 03-06-08 08:30 | 03-12-08 10:26 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0002498: @In with third-party EntityManagerFactory | ||||||||
Description |
(rep by wesley) I've expierenced a wired problen using @PersistenceUnit. ===================Not functional!======================== @Component public class PersistenceStrategy { // @PersistenceContext(unitName = "myunit") // EntityManager em; @PersistenceUnit(unitName = "myunit") EntityManagerFactory emf; ... // using emf, resin said // com.mycompany.PersistenceStrategy.emf: @PersistenceUnit(unitName='myunit') // is an unknown persistence unit. // No matching JPA persistence-units have been deployed } ============================================================ =========================OK================================= @Component public class PersistenceStrategy { @PersistenceContext(unitName = "myunit") EntityManager em; @PersistenceUnit(unitName = "myunit") EntityManagerFactory emf; ... // using emf, just leaving em unused } ============================================================ I'm use Hibernate 3.2 as my persistence layer, with 3.1.s080304 snapshot. Other configurations were normal and simple, as http://wiki.caucho.com/Hibernate [^] recommended. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Notes | |
(0002842) ferg 03-12-08 10:26 |
jpa/2140 This was an initialization timing issue between http://caucho.com/resin/doc/resin-ioc.xtp [^] and http://caucho.com/resin/doc/amber.xtp [^] |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |