Where it fits in a Spring Boot application
Chenile runs inside your Spring Boot application. It adds a service execution pipeline between supported entry points and your business services. The pipeline applies reusable policies such as authorization, tenant context, transformation and logging before invoking the service.
Spring Boot still starts the application and supplies dependency injection, web infrastructure and persistence integration. Your business code remains in Spring-managed beans. Chenile describes their service operations and controls how requests reach them.
| Responsibility | Where it lives |
|---|---|
| Application startup, bean wiring and infrastructure | Spring Boot and your application configuration |
| Business rules, repositories and transaction boundaries | Your service implementation and persistence layer |
| Operation definitions, request context and reusable service policies | Chenile’s service metadata and execution pipeline |
| Workflow, query, messaging and process orchestration | The Chenile modules you choose to add |
You can introduce Chenile for selected operations while other endpoints continue to use ordinary Spring MVC.
Adding the dependency alone does not apply Chenile policies to existing controllers or direct Java method
calls. Adopted operations must enter through a Chenile adapter or ChenileEntryPoint.
Watch a request pass through the adapters and pipeline.
Which problems make it worth considering?
| Situation in your project | What to evaluate |
|---|---|
| Authorization, tenant handling and logging are repeated across services | Service policies: configure reusable interceptors around operations. |
| HTTP, messages, schedules or AI tools need to invoke the same operations | Transports and events: bring those calls through a common execution pipeline. |
| Entities have explicit states, events and transition-specific behavior | Workflows: express the lifecycle separately from transition actions. |
| Tenant, region or rollout variations are spreading conditionals through service code | Trajectories: select configured implementations for individual requests. |
| Long-running work needs parent/child coordination and durable consequences | Process management: evaluate its worker, transaction and outbox model. |
Pick the problem you already have. You do not need a workflow engine to adopt the service pipeline, or a remote service registry to evaluate an operation locally. The eleven repositories organize the framework’s source; applications depend on the artifacts they need.
What adopting it changes
| Area | Work involved |
|---|---|
| Platform and dependencies | Check the published chenile-parent baseline against your application’s Java, Spring Boot and dependency versions. Resolve incompatibilities before migrating operations. |
| Service definition | Register the selected service and operations using Chenile annotations or JSON definitions. |
| Invocation | Route those operations through Chenile. An HTTP controller can delegate through ControllerSupport; other supported adapters enter the same pipeline. |
| Existing policies | Decide which checks remain in security filters and which run as Chenile interceptors. Remove duplicate checks only after verifying equivalent behavior. |
| External API | Review response envelopes, errors, status codes and headers. Keeping the URL does not guarantee an unchanged client contract. |
| Tests and operations | Exercise the service with its policies, tenant context and transactions; make the execution pipeline familiar to the people debugging it. |
Chenile encourages an api / service split: the interface and shared models form the contract, while the
implementation owns business logic and persistence. Start by identifying that boundary for the service you are
adopting. You can retain your existing repositories and entity model, and verify their transaction behavior for
the adopted operation. See definition vs. implementation.
For a published starting point, use Chenile 2.1.36. The 2.1.36 baseline uses Java 25 and Spring Boot 4.0.1; adopting it in an older application includes a platform upgrade. Check the published parent POM for the version you select. 2.1.37 is development work, rather than the dependency version for a first evaluation.
When Spring Boot alone may be sufficient
For a small CRUD application with one entry point and a few policies already handled clearly by Spring Security, filters or AOP, Chenile may add more conventions than it saves. It is also a poor time to adopt if the team cannot accommodate the required platform upgrade or test changes to an established API contract.
Adoption has a learning cost: developers need to understand service metadata, interceptor order, context headers and configuration. The benefit should be visible in reduced duplication or a clearer model of behavior your application already needs.
Evaluate one operation first
- Choose an existing operation with a repeated policy and a clear business outcome.
- Establish its current behavior with tests, including authorization, errors and transaction rollback.
- Expose it through Chenile in a test branch and apply one interceptor.
- Compare its API contract and operational behavior, including latency and tenant isolation where relevant.
- Assess the maintenance benefit with the team before extending adoption.
Use JGen to inspect a reference service structure or create a small sandbox. An existing application can be wired directly; adopting Chenile does not require regenerating it.
Try the quickstart to explore a generated application, or read the service-definition guide for the registration options. The developer guides cover the individual capabilities.