Skip to content

Commit

Permalink
Merge pull request snowdrop#166 from graben/doc
Browse files Browse the repository at this point in the history
Enhancing documentation to reflect snowdrop#165
  • Loading branch information
geoand authored Oct 10, 2024
2 parents 31310c7 + bfa8efb commit 81a337f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ configure the `narayana.node-identifier` property with a different value for eac
must not exceed a length of 28 bytes. To ensure that the value is shorten to a valid length by hashing with SHA-224 and encoding
with base64, configure `narayana.shorten-node-identifier-if-necessary` property to true.

# Batch application

If you are running your Spring Boot application as a batch program, you'll have to explicitly call exit (`SIGTERM`) on your application to proper shutdown.
This is needed because of Narayana is running periodic recovery in a non-daemon background thread.

This could be achieved with the following code example:
```java
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.exit(SpringApplication.run(Application.class, args));
}
}
```

# Using databases

By default Narayana Transactional driver is used to enlist a relational database to a JTA transaction which provides a basic XAResource enlistment and recovery.
Expand Down

0 comments on commit 81a337f

Please sign in to comment.