Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.6 Product Version
  Product Build
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.

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- 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 [^]

 

- Issue History
Date Modified Username Field Change
03-06-08 08:30 ferg New Issue
03-12-08 10:26 ferg Note Added: 0002842
03-12-08 10:26 ferg Assigned To  => ferg
03-12-08 10:26 ferg Status new => closed
03-12-08 10:26 ferg Resolution open => fixed
03-12-08 10:26 ferg Fixed in Version  => 3.1.6


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker