I have found this configuration for oracle-ds.xml and it's working. I can use strings longer than 32766 characters:
<!-- Tells an Oracle 10g driver to properly implement clobs. -->
This is how you can add connection properties to yorur jboss datasource.
The properties will get passed in the DriverManager.getConnection(props) call.