With the release of TJM 25.04.0, we have introduced and exciting new feature that will revolutionize solution development. Code Libraries lay the groundwork for a new way of developing and deploying services to TJM aiming to greatly improve how solutions work in TJM.
Code Libraries Feature Description
A Code Library is a new Service Definition type that provides a centralized repository for custom classes that can be updated once and used across all services in JM.
Services that depend on a Code Library import classes like any Java package. Dependent services can leverage in-memory instance sharing to avoid serialization, and combine with other libraries for a more modular, maintainable architecture.
Code Library services leverage the secure Fluent API, allowing developers familiar with TJM service development to adopt them quickly while preserving the groovy engine’s robust security model.
Key Benefits
Adopting Code Libraries into a solution comes with many benefits:
- Eliminates code duplication and redundant Groovy scripts
- Centralizes shared logic into a single in-memory bytecode instance
- Removes need for legacy “fileIncludes” and bulky script bundles
- Reduces memory footprint and accelerates compilation/startup
- Automatically propagates library updates to other services via 'tags’
- Streamlines maintenance and enforces consistency across services
Deploy Code Libraries
Code Libraries can be deployed via the SDK similarly to existing services. Refer to existing docs to learn more about service deployment: https://journey.temenos.com/api/sdk/quick-start-code-lib-dev
View Code Libraries
Once deployed, Code Library services can be viewed via the Code Library page through the JM admin console which is under the Services menu.
Access Levels
When deployed, Code Libraries can exist in three levels of access:
- Solution: Available only within the current solution
- Organization: Shared across all solutions under one client code
- Global: Accessible to every client and solution in the JM ecosystem