Java agents were originally explicitly supported, and there's an org.openntf.domino.JavaAgent
class you can extend to use them. That said, that faded out of use, in part due to the troubles inherent in attaching JARs to an agent or do putting ODA in jvm/lib/ext (which you should not do), and so now we don't make any guarantees about functionality. It should work, but you may have to tread carefully about making sure to call the Factory.initThread() method and the like manually.