To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.
These additions are based on a more advanced Stateless RMI concept by Florijan Stamenkovic.
Due to security concerns you cannot call FetchSpecifications from the client-side that use a Raw SQL Expression without implementing the delegate method distributionContextShouldFetchObjectsWithFetchSpecification which this code does NOT do.
If you try to, you will get the following exception in the server log:
Server exception: The fetchSpecification YourFetchSpecificationWithRawSQLExpression was not allowed to execute on the server. If your application needs to execute this method, the security needs to be relaxed by implementing the delegate method distributionContextShouldFetchObjectsWithFetchSpecification
and this code will return null to the client instead of the expected FetchSpecification.