You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Ron Piterman <rp...@gmx.net> on 2006/04/11 16:30:08 UTC

problem using library Pipeline

Hi,

I just tried using the library's Pipline factory, but ended up only 
having the first filter called. Any hints would be most appreciated...

cheers,
Ron


the xml:

<configuration-point id="QueryBuilderPipeline"
   schema-id="hivemind.lib.Pipeline">
</configuration-point>

   <service-point id="QueryBuilder" interface="QueryBuilder">
     <invoke-factory service-id="hivemind.lib.PipelineFactory">
       <create-pipeline filter-interface="QueryBuilderFilter"
         configuration-id="QueryBuilderPipeline"/>		
     </invoke-factory>
   </service-point>
	
   <contribution configuration-id="QueryBuilderPipeline">

     <filter before="*" name="BaseJoin"
       object="instance:impl.QBF0BaseJoin"/>

     <filter after="BaseJoin" name="CategoryXLocation"
       object="instance:impl.QBF1CategoryXLocation"/>

     <filter after="*" name="Order" object="instance:impl.QBFxOrder1"/>

   </contribution>

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: problem using library Pipeline

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ron & Happy Easter to you (and everyone else on the list) too :)

I apologies but I think I might have been a little unclear ...

In the filters you have, do you call the service implementation that is
passed in as a parameter?  Something like (in the filter class for
service ServiceInterface):

public void methodA(Integer paramA, Service serviceInterface)
{
  // do some filter work

  // Now pass the buck to the next filter
  serviceInterface.methodA(paramA);

}

This is where I got caught by not calling the serviceInterface method to
have the rest of the filters being invoked.

Cheers,

Johan

Ron Piterman wrote:
> Johan Lindquist wrote:
>> Hi again Ron,
>>
>> Just to make sure - do you call the method on the service implementation
>> that you are currently handling in the method of your filter?  Trivial
>> thing, but I have myself got caught by this before - void method and no
>> call to the service :)
>>
>> Cheers,
>>
>> Johan
> 
> Thanks for your answer :)
> 
> First I used dependency injected QueryBuilder (the service interface,
> not the filter one...) - when this didn't work, I explicitly used
> set-service in the <construct of the service which uses the
> QueryBuilder, both did the same -
> 
> for the logs I will post what I can get ASAP, but it will take a few
> days...
> 
> Cheers and happy eastern,
> 
> Ron
> 
> 
> 
>>
>>
>>> Hi,
>>>
>>> I just tried using the library's Pipline factory, but ended up only
>>> having the first filter called. Any hints would be most appreciated...
>>>
>>> cheers,
>>> Ron
>>>
>>>
>>> the xml:
>>>
>>> <configuration-point id="QueryBuilderPipeline"
>>>   schema-id="hivemind.lib.Pipeline">
>>> </configuration-point>
>>>
>>>   <service-point id="QueryBuilder" interface="QueryBuilder">
>>>     <invoke-factory service-id="hivemind.lib.PipelineFactory">
>>>       <create-pipeline filter-interface="QueryBuilderFilter"
>>>         configuration-id="QueryBuilderPipeline"/>
>>>     </invoke-factory>
>>>   </service-point>
>>>
>>>   <contribution configuration-id="QueryBuilderPipeline">
>>>
>>>     <filter before="*" name="BaseJoin"
>>>       object="instance:impl.QBF0BaseJoin"/>
>>>
>>>     <filter after="BaseJoin" name="CategoryXLocation"
>>>       object="instance:impl.QBF1CategoryXLocation"/>
>>>
>>>     <filter after="*" name="Order" object="instance:impl.QBFxOrder1"/>
>>>
>>>   </contribution>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 

- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEPgK/1Tv8wj7aQ34RAqB9AKCCQL4MrEW1x6HoGcvwNKNIZYjiKQCfXAjG
BlOSv7pe1JR0pt1vMNDP51M=
=sgU+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: problem using library Pipeline

Posted by Ron Piterman <rp...@gmx.net>.
Johan Lindquist wrote:
> Hi again Ron,
> 
> Just to make sure - do you call the method on the service implementation
> that you are currently handling in the method of your filter?  Trivial
> thing, but I have myself got caught by this before - void method and no
> call to the service :)
> 
> Cheers,
> 
> Johan

Thanks for your answer :)

First I used dependency injected QueryBuilder (the service interface, 
not the filter one...) - when this didn't work, I explicitly used 
set-service in the <construct of the service which uses the 
QueryBuilder, both did the same -

for the logs I will post what I can get ASAP, but it will take a few days...

Cheers and happy eastern,

Ron



> 
> 
>>Hi,
>>
>>I just tried using the library's Pipline factory, but ended up only
>>having the first filter called. Any hints would be most appreciated...
>>
>>cheers,
>>Ron
>>
>>
>>the xml:
>>
>><configuration-point id="QueryBuilderPipeline"
>>   schema-id="hivemind.lib.Pipeline">
>></configuration-point>
>>
>>   <service-point id="QueryBuilder" interface="QueryBuilder">
>>     <invoke-factory service-id="hivemind.lib.PipelineFactory">
>>       <create-pipeline filter-interface="QueryBuilderFilter"
>>         configuration-id="QueryBuilderPipeline"/>
>>     </invoke-factory>
>>   </service-point>
>>
>>   <contribution configuration-id="QueryBuilderPipeline">
>>
>>     <filter before="*" name="BaseJoin"
>>       object="instance:impl.QBF0BaseJoin"/>
>>
>>     <filter after="BaseJoin" name="CategoryXLocation"
>>       object="instance:impl.QBF1CategoryXLocation"/>
>>
>>     <filter after="*" name="Order" object="instance:impl.QBFxOrder1"/>
>>
>>   </contribution>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>>
>>
>>
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: problem using library Pipeline

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
Hi again Ron,

Just to make sure - do you call the method on the service implementation
that you are currently handling in the method of your filter?  Trivial
thing, but I have myself got caught by this before - void method and no
call to the service :)

Cheers,

Johan

> Hi,
>
> I just tried using the library's Pipline factory, but ended up only
> having the first filter called. Any hints would be most appreciated...
>
> cheers,
> Ron
>
>
> the xml:
>
> <configuration-point id="QueryBuilderPipeline"
>    schema-id="hivemind.lib.Pipeline">
> </configuration-point>
>
>    <service-point id="QueryBuilder" interface="QueryBuilder">
>      <invoke-factory service-id="hivemind.lib.PipelineFactory">
>        <create-pipeline filter-interface="QueryBuilderFilter"
>          configuration-id="QueryBuilderPipeline"/>
>      </invoke-factory>
>    </service-point>
>
>    <contribution configuration-id="QueryBuilderPipeline">
>
>      <filter before="*" name="BaseJoin"
>        object="instance:impl.QBF0BaseJoin"/>
>
>      <filter after="BaseJoin" name="CategoryXLocation"
>        object="instance:impl.QBF1CategoryXLocation"/>
>
>      <filter after="*" name="Order" object="instance:impl.QBFxOrder1"/>
>
>    </contribution>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>


-- 
you too?


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: problem using library Pipeline

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
Hi Ron,

Do you by any chance have the log's for this too?  From a glance, your XML
looks ok, but the log could reveal more.

Cheers,

Johan

> Hi,
>
> I just tried using the library's Pipline factory, but ended up only
> having the first filter called. Any hints would be most appreciated...
>
> cheers,
> Ron
>
>
> the xml:
>
> <configuration-point id="QueryBuilderPipeline"
>    schema-id="hivemind.lib.Pipeline">
> </configuration-point>
>
>    <service-point id="QueryBuilder" interface="QueryBuilder">
>      <invoke-factory service-id="hivemind.lib.PipelineFactory">
>        <create-pipeline filter-interface="QueryBuilderFilter"
>          configuration-id="QueryBuilderPipeline"/>
>      </invoke-factory>
>    </service-point>
>
>    <contribution configuration-id="QueryBuilderPipeline">
>
>      <filter before="*" name="BaseJoin"
>        object="instance:impl.QBF0BaseJoin"/>
>
>      <filter after="BaseJoin" name="CategoryXLocation"
>        object="instance:impl.QBF1CategoryXLocation"/>
>
>      <filter after="*" name="Order" object="instance:impl.QBFxOrder1"/>
>
>    </contribution>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>


-- 
you too?


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org