Friday, May 4, 2012

OSB: Reading Java System Property

Apparently in some versions of XSLT it's possible to read System Properties with a function system-property(propertyName)

http://www.java2s.com/Tutorial/XML/0100__XSLT-stylesheet/GettingJavasystempropertieswithsystemproperty.htm

http://www.java2s.com/Tutorial/XML/0100__XSLT-stylesheet/Getsystempropertywithsystempropertyfunction.htm

but in OSB only the second example ('xsl.version') works. If you try to provide 'weblogic.Name' you get:


java.lang.RuntimeException: Invalid argument type 'weblogic.Name' in call to 'system-property()'


Unfortunately in XQuery there is no "system-property" function, so you only have Java as an option (callout or custom xpath). Bummer.

No comments: