concept solution in category spring

appears as: solution, solutions, solutions, The solution, A solution, The solutions
Spring Security in Action

This is an excerpt from Manning's book Spring Security in Action.

In this section, we’ll discuss applying security practices depending on the design of your system. It’s important to understand that different software architectures imply different possible leaks and vulnerabilities. I want to make you aware of this first chapter about this philosophy to which I’ll refer throughout the book. Architecture strongly influences the choices in configuring Spring Security for your applications, so do the functional and non-functional requirements. Even when you think of a real-life situation, to protect something, depending on what you want to protect, you’ll use a metal door, bulletproof glass, or a barrier. You couldn’t just use a metal door in all the situations. If what you protect is an expensive painting in a museum, you still want people to be able to see it. You don’t want them to be able to touch it, damage it, or even take it with them. In this case, the functional requirements are the ones affecting the solution we take for secure systems.

Is common to use schema.sql and data.sql files in examples. In a real application, you would rather choose a solution that allows you also to version the SQL scripts. You’ll find this very often done using a dependency like Flyway (more details here https://flywaydb.org/) or Liquibase (more details here https://www.liquibase.org/).

Spring Roo in Action

This is an excerpt from Manning's book Spring Roo in Action.

In short, basic IDE support for Roo is available from SpringSource Tool Suite and Jet-Brains IntelliJ. Unfortunately, AspectJ support, the key enabling technology for Spring Roo, is dormant in the NetBeans IDE to date. Until a solution arrives that allows developers to edit code built on AspectJ ITDs on that platform, developers who use Net-Beans will have to use command-line Maven or another IDE to work with Spring Roo.

Let’s revisit the course registration use case, which includes multiple steps to process the course registration request before the last step of sending a confirmation email notification. This is a good use case for a workflow-based solution. The beauty of this solution is that you can implement a successful registration and a wait-list scenario within the same workflow. This is one of the advantages to using a workflow approach and the Spring Integration framework in enterprise Java applications. It allows you to design a solution with different branches (forks) and subprocesses in the process flow.

Spring Batch in Action

This is an excerpt from Manning's book Spring Batch in Action.

The solution is to make the job launcher asynchronous. Figure 4.2 shows how launching behaves when the job launcher is asynchronous.

You can also have a mix of solutions: use cron because it’s a popular solution in your company and embed Spring Batch in a web application because it avoids costly recurring initializations. The challenge here is to give cron access to the Spring Batch environment. Figure 4.5 illustrates this deployment.