avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: new to avalon -- problems
Date Fri, 28 Dec 2001 15:25:41 GMT
Patrick Hess wrote:

> 
> Berin Loritsch wrote:
> 
>>> Hmmm, now I'm getting this after fixing the wrong parameter in <jdbc>:
>>
>>
>> What does your role file look like?


Are you calling the lookup like this:

manager.lookup( DataSourceComponent.ROLE + "Selector" ); //?

If you want to use DataSourceComponent.ROLE alone, then the
roles file needs to change the role name for the DatasourceComponent
to remove the "Selector" designator at the end.


> 
> 
> 
> This is the complete role file:
> 
> <roles>
>   <role 
> name="org.apache.avalon.excalibur.datasource.DataSourceComponentSelector" 
> shorthand="datasources"
> 
> default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector">

> 
>     <hint shorthand="jdbc" 
> class="org.apache.avalon.excalibur.datasource.JdbcDataSource" />
>   </role>
>   <role name="de.jxe.test.DocumentRepository" shorthand="repository"
>         default-class="de.jxe.test.DatabaseDocumentRepository" />
> 
>   <role name="de.jxe.test.DocumentRepository" shorthand="simple"
>         default-class="de.jxe.test.SimpleDocumentRepository" />
> </roles>
> 
> Patrick Hess
> 
> | metazoa GmbH        | fon   +49-211-175447-20 |
> | Erkrather Str. 206  | fax   +49-211-175447-27 |
> | 40233 Düsseldorf    | mail  p.hess@metazoa.de |
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:avalon-dev-help@jakarta.apache.org>
> 
> .
> 



-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message