Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331901 - EntityManagerFactory(Builder) services are not registered under Felix
Summary: EntityManagerFactory(Builder) services are not registered under Felix
Status: CLOSED DUPLICATE of bug 331898
Alias: None
Product: Gemini.JPA
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Keith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-06 09:34 EST by Nick Wilson CLA
Modified: 2010-12-16 17:16 EST (History)
0 users

See Also:


Attachments
Modified to better handle INSTALLED and ACTIVE bundles. (13.69 KB, text/java)
2010-12-06 09:34 EST, Nick Wilson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Wilson CLA 2010-12-06 09:34:31 EST
Created attachment 184603 [details]
Modified to better handle INSTALLED and ACTIVE bundles.

Tested with GeminiJPA 1.0.0M3 and Felix 3.0.6.

This is due to the PersistenceBundleExtender not handling bundles that are in the INSTALLED state. I've attached a possible fix that includes the following changes:

1. Modified the "bundleChanged( BundleEvent event )" method for STARTING bundles so that it calls tryAssigningPersistenceUnitsInBundle if the bundle has not yet been assigned.

2. Modified the "lookForExistingBundles()" method to handle bundles in the INSTALLED and ACTIVE states rather than trying to restart them.

NOTE: I have only tested this against Felix, not Equinox.
Comment 1 Michael Keith CLA 2010-12-06 11:04:38 EST
Moving to new bin location.
Comment 2 Michael Keith CLA 2010-12-16 17:16:31 EST
Caused by problem described in 331898

*** This bug has been marked as a duplicate of bug 331898 ***