hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shing Hing Man <mat...@yahoo.com>
Subject Re: List of hivemind services
Date Thu, 29 Jun 2006 09:30:14 GMT
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." <subscribes@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


Mime
View raw message