Project

Profile

Help

Xquery: Java Object extensions stateless?

Added by Anonymous about 20 years ago

Legacy ID: #2812373 Legacy Poster: g_ball (gjball)

I cannot seem to find a way of instantiating a java object and using it later in Xquery. It looks like you either pass in the constructor each time or call a static method. Is this part of the programming model? Thanks, Greg


Replies (1)

RE: Xquery: Java Object extensions stateless? - Added by Anonymous about 20 years ago

Legacy ID: #2813689 Legacy Poster: Michael Kay (mhkay)

You should be able to pass an instance as the first argument in a call to an instance-level (non-static) method, for example let $x := date:new() return date:toString($x) Remember to use the -TJ option for diagnostics on external function binding. Michael Kay

    (1-1/1)

    Please register to reply