• Can i use OpenNTF Domino API with Agent?

    By Ivan Giannattasio 3 years ago

    I just released ODA for the whole web part with xpages. And after months of various problems with server recycles and crashes, now everything seems to be working.
    In my production environment, I have 40,000 databases pointing to the same template.
    Now I was wondering: can I use ODA in Java agents/ libraries too?
    I read somewhere that it is not supported, but elsewhere it seems that someone is using them.
    Maybe over the years there has been some news. What do you suggest to me?

    • By Jesse Gallagher 3 years ago

      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.