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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]