You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "Kosarev A.V." <su...@webkazan.ru> on 2006/06/28 14:28:28 UTC
List of hivemind services
Hi all!
How I can configure list of services for constructor or property?
For example, I want create service and set list of other hivemind
services to his property.
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: List of hivemind services
Posted by "Kosarev A.V." <su...@webkazan.ru>.
Thanks a lot! It's working when I change
<push-attribute attribute="value"/>
an
<push-attribute attribute="service-id"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: List of hivemind services
Posted by Shing Hing Man <ma...@yahoo.com>.
You might like to change <configuration-point
id="availableDAO"> to the following and see if it
works.
<configuration-point id="availableDAO">
<schema>
<element name="dao">
<attribute name="service-id"
translator="service-point"/>
<rules>
<!-- Read in the value. The service-point
translator will
convert the value.
-->
<push-attribute attribute="value"
/>
<invoke-parent
method="addElement"/>
</rules>
</element>
</schema>
</configuration-point>
Shing
--- "Kosarev A.V." <su...@webkazan.ru> wrote:
> Please take a look to code:
> <service-point id="daoFactory"
> interface="mypackage.dao.DAOFactory">
> <invoke-factory model="singleton">
> <construct
> class="mypackage.dao.DAOFactory">
> <set-configuration
> property="availableDAO"
> configuration-id="availableDAO"/>
> </construct>
> </invoke-factory>
> </service-point>
>
> <configuration-point id="availableDAO">
> <schema>
> <element name="dao">
> <attribute name="service-id"
> translator="service-point"/>
> </element>
> </schema>
> </configuration-point>
>
> <conribution configuration-id="availableDAO">
> <dao service-id="accountDAO"/>
> <dao service-id="clientDAO"/>
> </conribution>
>
> What's wrong?
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: List of hivemind services
Posted by "Kosarev A.V." <su...@webkazan.ru>.
Please take a look to code:
<service-point id="daoFactory" interface="mypackage.dao.DAOFactory">
<invoke-factory model="singleton">
<construct class="mypackage.dao.DAOFactory">
<set-configuration property="availableDAO"
configuration-id="availableDAO"/>
</construct>
</invoke-factory>
</service-point>
<configuration-point id="availableDAO">
<schema>
<element name="dao">
<attribute name="service-id" translator="service-point"/>
</element>
</schema>
</configuration-point>
<conribution configuration-id="availableDAO">
<dao service-id="accountDAO"/>
<dao service-id="clientDAO"/>
</conribution>
What's wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: List of hivemind services
Posted by Andrea Chiumenti <ki...@gmail.com>.
Just use a schema and a configuration point a schema property should be
mabbed as
<attribute name="key" required="T/F" translator="service-point"/>
see:
http://jakarta.apache.org/hivemind/hivedocs/config/hivemind.Translators.html
It should be, but I'm not very shure since I've not my PC with me and my
memory is like Windows ( a shit ;) )
Ciao,
kiuma
On 6/28/06, Kosarev A.V. <su...@webkazan.ru> wrote:
>
> Hi all!
>
> How I can configure list of services for constructor or property?
> For example, I want create service and set list of other hivemind
> services to his property.
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>