Home Blog Page 2

Blog

Fast Logback

I've been reading Logback documentation today and found an interesting moment about its speed of logging. Assuming we have set a logging level higher than DEBUG (INFO, WARN or ERROR) and then we try to log something like: This approach takes long time to calculate because independent of the fact that log statement may be disabled that calcualtion of String value...

The lost camel

There is something interesting about Camel Routes. Usually they are defined in the beginning and assumed to have the same endpoints. But today I had a situation when depending on the .process() execution the result endpoint had to be dynamic. So after consulting with one of my colleagues I found the following solution: BUT THIS DOES NOT WORK ... the problem is about...
In this series of posts I will give the answers I found for each of the Core Spring 4.2 Study Guide questions (you can download the guide at http://vojtechruzicka.com/wp-content/uploads/2016/10/Core-Spring-4.2-Certification-Study-Guide.pdf) Some background... Suppose you have 2 teams working on two different layers of the application: web and database. Well we use the Spring container for wiring these layers together. What is dependency injection and...
Servlets are programs that run on Web server (or Application server, which is usually called servelt container) and act as a middle layer between the web browser and database (or other application). Incoming (request)  Servlet Outgoing (response) Data from HTML forms, applets and custom HTTP clients Processes data and if required makes certain database requests etc. Response in form of HTML pages or explicit documents (Excel,...

Introduction to JMS

Java Message Service (JMS) is vendor-agnostic Java API that one can use to integrate heterogeneous systems. This API is implemented by many vendors in their Message-Oriented Middleware (MOM) products, so when using any of these products (JMS providers) you can actually use the same API - the JMS API. JMS offers many advantages, main of them are: heterogeneous integration - some messaging systems allow...