I don't think we can expect every framework to support isolation. So I
think we should expose the persistence bundle name & version as the
service properties and modify the ns handler schema to allow for more
precise query. I would prefer a generic filter attribute instead of a
specific properties for bundle name and/or version.

Jarek

On Thu, Nov 4, 2010 at 4:03 AM, Valentin Mahrwald
<[email protected]> wrote:
> I think the assumption at the time of writing was that unit names would be 
> unique per framework, through isolating applications in sub-frameworks. As 
> far as the JPA spec goes there are no other useful properties to select on.
> We could introduce something like persistence bundle name and persistence 
> bundle version as properties on the service and possible selectors in the 
> schema !?
>
> Valentin
>
>
> On 4 Nov 2010, at 02:35, Jarek Gawor wrote:
>
>> Hi,
>>
>> From looking at the jpa blueprint ns handler, it seems like the
>> handler only uses the unitname attribute to select which persistence
>> unit to inject. But unitname alone might not be enough to select the
>> right persistence unit. What if there are two different persistence
>> bundles deployed with the same unit name? I think the schema should
>> allow for an optional filter attribute which would be combined with
>> the unitname to select the right persistence unit.
>>
>> Thoughts?
>>
>> Jarek
>
>

Reply via email to