Hmm,

Filtering them out seems less than ideal. It would be nice is we could have a 
way to discover the JPA service definitions. It would help find typos in the 
context element's unitname property.

I guess we can get to that in the future though.

Alasdair

On 27 Sep 2010, at 19:39, Valentin Mahrwald <[email protected]> wrote:

> The blueprints are parsed to enable service-based provisioning. We want to 
> find out what services a bundle provides as well as which ones it needs. This 
> information is crucial to provision extra bundles from repositories and 
> generate the deployment manifest etc where a service is provided by a shared 
> bundle. 
> 
> As an aside: the decision to also invoke namespace handlers was made to 
> support extension namespaces that create reference or services elements. 
> However, the only namespace handler that currently does so is the JPA one, 
> which creates references that currently cannot currently be handled in the 
> provisioning and are filtered out as a result.
> 
> Valentin
> 
> On 27 Sep 2010, at 14:34, Joe Bohn wrote:
> 
>> 
>> Can you be more specific on the need for the EBA installer to parse the 
>> blueprint xml?   Is it to validate that services exported by the EBA are 
>> actually defined in some bundle?
>> 
>> If that is the case, then would it be possible to install the bundle(s) 
>> first and validate exported services against those registered by the various 
>> bundles?
>> 
>> Joe
>> 
>> 
>> On 9/27/10 2:16 PM, Alasdair Nottingham wrote:
>>> Hi,
>>> 
>>> I think the simple answer is probably yes. I think it is called once to 
>>> know how to resolve the application, and the second time because we have 
>>> installed the framework.
>>> 
>>> Alasdair
>>> 
>>> On 27 Sep 2010, at 19:02, Joe Bohn<[email protected]>  wrote:
>>> 
>>>> 
>>>> When processing an application (EBA) we parse all of the blueprint.xml 
>>>> (including custom namespaces) as part of the application processing for 
>>>> all bundles within the EBA.  The net result is that we do all of this 
>>>> parsing twice because we also must parse and processes the information in 
>>>> the BlueprintContainer.
>>>> 
>>>> Why is it necessary to parse the blueprint.xml during EBA installation in 
>>>> the application module?
>>>> 
>>>> I stumbled on this because I was making some modifications to a custom 
>>>> namespace handler and noticed that it was being invoked twice for the same 
>>>> elements.  It seems that this is not desirable.  Should all namespace 
>>>> handlers be coded in such a way that they can be invoked multiple times 
>>>> for the exact same elements?
>>>> 
>>>> --
>>>> Joe
>>> 
> 

Reply via email to