• Spring request life cycle
    Java,  Spring,  Uncategorized,  Web Development

    14 Tips for Writing Spring MVC Controllers

    In this article, I'm going to share with you some of the fundamental techniques and best practices for writing a controller class with the Spring MVC framework. Typically, in Spring MVC, we write a controller class to handle requests coming from the client. Then, the controller invokes a business class to process business-related tasks, and then redirects the client to a logical view name, which is resolved by Spring’s dispatcher servlet in order to render results or output. That completes a round trip of a typical request-response cycle.

  • System Architecture of SAP Commerce Accelerator
    Architecture,  Computer Science,  Java,  Software Development

    System Architecture of SAP Commerce Accelerator

    Commerce Accelerator combines a feature-rich web application with a collection of software components that fulfill many typical use cases that are common requirements on a vast number of SAP Commerce implementation projects. This document helps you understand the software as well as understand in more detail the features implemented by the software, how everything fits together, and how you can adapt the code or configure it to fulfill your project's requirements.

  • Character set and encoding
    Computer Science,  Java,  Software Development

    Introducing Character Sets and Encoding

    If you are dealing with text in a computer, you need to know about encodings. Period. Yes, even if you are just sending emails. Even if you are just receiving emails. You don't need to understand every last detail, but you must at least know what this whole "encoding" thing is about. And the good news first: while the topic can get messy and confusing, the basic idea is really, really simple.

  • Java Performance Boost
    Java

    Solve your Java performance problems

    The Performance Diagnostic Methodology (PDM) is a structured approach in order to find the root cause of Java performance problems. When performance issues occur, often people start panicking and start tuning the JVM without exactly knowing whether they are solving the cause of the performance issue. Therefore, a structured approach can exclude some possible causes and point you in the right direction in order to solve the issue appropriately. The approach is visualized with the next scheme. References:

  • Design Patterns,  Java

    Factory Method Design Pattern

    Factory method pattern enables us to create an object without exposing the creation logic to the client and refer to the newly-created object using a common interface. It is one of the most widely used creational patterns. This pattern is also known as the Virtual Constructor. The intent of this pattern, according to Design Patterns by Gamma et al, is to: Define an interface for creating an object, but let subclasses decide which class to instantiate. The Factory method allows a class to defer instantiation to subclasses. The Factory method is for creating objects. A superclass specifies all standard and generic behavior and then delegates the creation details to subclasses…