cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@dslextreme.com>
Subject Re: javaflow connection
Date Thu, 17 Nov 2005 14:38:13 GMT


Carlos Maté wrote:

> Finally I sow the exact class.
> And I got the connection: 
>
> WrapperServiceSelector selector =(WrapperServiceSelector) 
> getComponent(DataSourceComponent.ROLE +
>
> "Selector");
>
> DataSourceComponent dataSource = (DataSourceComponent) selector.select(
>
> "connection");
>
> Connection conexion = dataSource.getConnection();
>
> Thank you very much.
>   

This makes sense, however you should use

ServiceSelector selector = 
(ServiceSelector)getComponent(DataSourceComponent.ROLE + "Selector");

What I don't under is why your instanceof test returned true.

Ralph

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message