Hi all,

I,ve gone ahead and implemented this by introducing a service level
annotation called undispatched. Hence the following is supported now,

this.undispatched= function bar(){
        print("dispatched");
}

OR

this.undispatched= "bar";
function bar(){
        print("dispatched");
}

With this in place any dispatched operations of this service will be
dispatched to this special function. This is handles by adding a new
dispatcher which looks for this special property.

assuming the above servicename was test and was deployed as a sample,
browsing to http://localhost:7762/services/samples/test/x would actually
get dispatched to the operation bar. Hence dispatched would be printed
on the console.

Thanks,
Keith.




Keith Chapman wrote:
> Hi all,
> 
> Sanjiva proposed that we have a method to dispatch all undispatched
> (Dispatched to the service but not to the operation) operations to a
> special method. This would be very useful when we get the two way IM
> stuff in place.
> 
> But even now it does give some value. So how about an annotation such as
> this.undispatched= "functionName";
> 
> Thanks,
> Keith.
> 
> _______________________________________________
> Mashup-dev mailing list
> [email protected]
> http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev
> 


_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to