* @throws Exception
*/
public static Transport<ServerFactory> newListener( final String uri, Resources resources,
final MyCuaeServerFactory implFactory ) throws Exception
{
final Resources res = initResources( resources );
if (!res.containsKey( Transport.VALUE_FACTORY ))
res.put( Transport.VALUE_FACTORY, new MyValueFactoryCuae( "tcp:" ) );
return TransportFactory.getListener( uri, res, new DefaultServerFactory( implFactory )
{
public void newServer( DeliveryService d, ValueFactory vf ) throws Exception
{
Pool qp = (Pool) res.get( QUEUED_POOL );
Pool fp = (Pool) res.get( FREE_POOL );
implFactory.newMyCuaeServer( d, qp, fp, (MyValueFactoryCuae) vf );
}
public ValueFactory newValueFactory()
{