Thursday, May 6, 2010

OSB: invoke Java from XQuery

Call a Java Method from XQuery
This tip shows you how to develop XQuery queries that may call any other method. The method called in this tip is java.lang.Math.random:

declare namespace m="java:java.lang.Math";

let $r:=m:random()
return $r

This unfortunately doesn't seem to work in OSB 3.0 .... bugger....
I am told that in OSB 11g you can extend XQuery writing custom Java functions... 
extensibility mechanism, where are you... XQuery is waiting it since 2002.... 
I see really a huge community interest in this technology :o(

No comments: