#dominoforever | Product Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Allow JAR files to be used in Java agents

Currently we use JAR files in XPages but cannot use the same JAR in a Java agent without copying it but it won’t work anyways because of a memory leak bug when using JAR in a Java agent. One JAR file should be usable from XPages code and Java agents.

  • Guest
  • Jul 15 2018
  • Assessment
  • Attach files
  • Guest commented
    4 Mar, 2021 12:26am

    A great option would be to use Java/Сode design elements in Java-agents/services.

  • Guest commented
    28 Feb, 2019 10:15am

    Putting Jars into ../ext is a bad option because it

    • reduces security
      Code in ../ext has AllPermission by default. This is of course a minor issue because any Java code on any Domino server can easily get AllPermission and escalate its Domino permissions to the servers. But moving code to ../ext opens the door for doing harm by mistake.
    • breaks design update
      Putting a database on a new server and version updates will not work with default Domino tooling. And you might even be required to roll out your Jars to any client...
    • breaks database coexistence
      Two applications using different versions of the same library won't be able to live on the same server

    Fun fact: The mentioned memory leak in agents occurs whether you attach jars or not. But without attached jars the agent is (in most cases) much smaller causing the leak to be acceptable or even not noticeable.

    We've solved this issue by creating our own ClassLoader that makes Java scriptlibs accessible from everywhere.

  • Guest commented
    18 Feb, 2019 12:28pm

    We put jars in \..jvm\lib\ext

  • Guest commented
    7 Feb, 2019 08:32pm

    JAR files for LS2J, also!

  • Guest commented
    8 Aug, 2018 08:04am

    Please see and vote for related idea https://domino.ideas.aha.io/ideas/NTS-I-54 

  • Guest commented
    20 Jul, 2018 02:17am

    The jar files stored in the nsf should work with XPages and agents. We shouldn’t have to resort to workarounds like \jvm\lib\ext to make this work and have to deal with that being wiped out when Domino is upgraded. 

  • Guest commented
    18 Jul, 2018 09:41am

    We put jar files in the \jvm\lib\ext folder on our Domino servers. This makes them available to agents and XPages. (You also need to add them to the \jvm\lib\ext folder on your Notes client for designer to be able to build). Make sure you keep a list of which jar files you've added! You'll need to put them back again when your admins upgrade Domino.