According to a recent report, Spring MVC is used by 40% of Java developers out there, making it one of the most popular Java web frameworks in existence. Fair enough, it provides amazing benefits in providing a reliable, time-tested framework for developing web applications in Java. Developers don’t have to reinvent the wheel when it comes to well-understood problems, like serving content over HTTP and wiring up a model-view-controller (MVC) layout for their application.
Product Updates, Company News & Fun
In the previous article we’ve uncovered a typical Hibernate issue – as Hibernate hides a lot of relational database complexity from us, it is easy to accidentally pull too much data through too many queries from the database. We used XRebel to identify that issue in Spring Petclinic, but haven’t figured out how to fix it yet…
ICON Health & Fitness frequently reviews tools to help their developers both be more productive and write better code. They chose to use XRebel to assist with the performance profiling of their applications, from the session to the database and to help them find exceptions and/or errors in their code. XRebel was designed to help developers fix issues like:
- Session Issues: bloat and leaks
- Database: Rogue SQL, track offending methods, inefficient queries, naive ORM configurations
- Hidden exceptions
With these benefits in mind, ICON set off to see how XRebel could give them better insight into their apps, and how to discover and squash bugs in production while still writing code.
Hey folks, before we begin we’re happy announce that our JRebel 6 beta program continues at a great pace and we’re getting some excellent feedback from a lot of early adopters. Want to be one? Simply download the latest version of JRebel and then follow the instructions here for enabling JRebel 6 beta functionality (like changing Superclasses or implemented interfaces without restarting)!
Hibernate is an amazing tool used by a majority of Java developers to hide the complexity of querying and modifying a relational database. However, the very complexity it hides can sometimes create issues that are hard to understand and fix. One of the biggest challenges that Hibernate users face is determining how much information and in which way will be queried from the database.
Building web applications with Spring MVC often requires to store some user data – some examples are security credentials, profile information, temporary conversational objects and others. The natural way to do that in Spring MVC is by setting the HttpSession attributes either directly or through the session scope descriptors.