You can install Java classes in Adaptive Server, and then invoke the static methods of those classes in two ways:
You can invoke the Java methods directly in SQL.
You can wrap the methods in SQL names and invoke them as you would standard Transact-SQL stored procedures.