The java.sql.Connection.setReadOnly method is supported.
See the section "Differences using the Connection.setReadOnly method" in the Derby Server and Administration Guide for more information.