delayDoit2b( 23, "killer bee" );
break;
}
Message rmsg = msg.reply();
System.out.println( "rmsg = "+rmsg );
System.out.println( "resp = "+resp );
rmsg.put( MyValueFactoryCuae._mf_result, resp );
svc.transportMessage( sender, rmsg );
return;
}
if (msg.isType( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_doit3 ))
{
StructValue[] reqs = (StructValue[]) msg.get( MyValueFactoryCuae._mf_req );
StructValue req = reqs[0];
MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Request.checkIsAssignableFrom( req.type() );
int code = (Integer) req.get( MyValueFactoryCuae._mf_code );
StructValue resp;
switch (code)
{
case 23:
resp = new StructValue( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Response, vf );
resp.put( MyValueFactoryCuae._mf_msg, "foo" );
delayDoit2a( 7 );
break;
case 19:
resp = new StructValue( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_RespWithCode, vf );
resp.put( MyValueFactoryCuae._mf_msg, "bar" );
resp.put( MyValueFactoryCuae._mf_code, 54 );
delayDoit2b( 11, "heaven" );
break;
case 13:
resp = new StructValue( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Response, vf );
resp.put( MyValueFactoryCuae._mf_msg, "baz" );
delayDoit2a( 99 );
break;
default:
resp = new StructValue( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_RespWithCode, vf );
resp.put( MyValueFactoryCuae._mf_msg, "unknown code " + code );
resp.put( MyValueFactoryCuae._mf_code, 63 );
delayDoit2b( 23, "killer bee" );
break;
}
Message rmsg = msg.reply();
System.out.println( "rmsg = "+rmsg );
System.out.println( "resp = "+resp );
rmsg.put( MyValueFactoryCuae._mf_result, new StructValue[] { resp } );
svc.transportMessage( sender, rmsg );
return;
}
throw new IllegalArgumentException( "unknown msg type "+msg );