Java Code Geeks » Michal Vrtiak http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Tue, 31 Mar 2015 04:00:44 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 Apache Camel – developing application from the scratch (part 2 / 2)http://www.javacodegeeks.com/2013/11/apache-camel-developing-application-from-the-scratch-part-2-2.html http://www.javacodegeeks.com/2013/11/apache-camel-developing-application-from-the-scratch-part-2-2.html#comments Wed, 06 Nov 2013 23:00:50 +0000 http://www.javacodegeeks.com/?p=18698 This is the second part of the tutorial where we are creating an invoices processing application using Apache Camel. In case you missed it, be sure to look at the first part. Previously we’ve defined functional requirements for the system, created gateway, splitter, filter and content-based router component. Let’s continue with creating a transformer. 5. ...

 

]]>
http://www.javacodegeeks.com/2013/11/apache-camel-developing-application-from-the-scratch-part-2-2.html/feed/ 0
Apache Camel – developing application from the scratch (part 1 / 2)http://www.javacodegeeks.com/2013/10/apache-camel-developing-application-from-the-scratch-part-1-2.html http://www.javacodegeeks.com/2013/10/apache-camel-developing-application-from-the-scratch-part-1-2.html#comments Wed, 23 Oct 2013 10:00:53 +0000 http://www.javacodegeeks.com/?p=18309 Before we start Some time ago I wrote a tutorial on Spring Integration to demonstrate how to use Spring Integration in sample application inspired by real-world invoices processing system. I got quite positive feedback on that one so I decided that I will show you how can we build very same application using Apache Camel ...

 

]]>
http://www.javacodegeeks.com/2013/10/apache-camel-developing-application-from-the-scratch-part-1-2.html/feed/ 0
Spring Integration – Application from scratch, Part 2http://www.javacodegeeks.com/2013/03/spring-integration-application-from-scratch-part-2.html http://www.javacodegeeks.com/2013/03/spring-integration-application-from-scratch-part-2.html#comments Thu, 07 Mar 2013 20:00:09 +0000 http://www.javacodegeeks.com/?p=9512 This is the second part of the tutorial where we are creating an invoices processing application using Spring Integration. In case you missed it, be sure to look at the first part. Previously we’ve defined functional requirements for the system, created gateway, splitter, filter and router component. Let’s continue with creating a transformer. 5. Transforming ...

 

]]>
http://www.javacodegeeks.com/2013/03/spring-integration-application-from-scratch-part-2.html/feed/ 3
Spring Integration – Application from scratch, Part 1http://www.javacodegeeks.com/2013/03/spring-integration-application-from-scratch-part-1.html http://www.javacodegeeks.com/2013/03/spring-integration-application-from-scratch-part-1.html#comments Thu, 07 Mar 2013 17:00:32 +0000 http://www.javacodegeeks.com/?p=9496 Before we start In this tutorial you will learn what is Spring Integration, how to use it and what kind of problems does it help to solve. We will build a sample application from the scratch and demonstrate some of the core components of Spring Integration. If you’re new to Spring check out another tutorial ...

 

]]>
http://www.javacodegeeks.com/2013/03/spring-integration-application-from-scratch-part-1.html/feed/ 0
IntelliJ IDEA: Generate equals, hashCode and toString with Google Guavahttp://www.javacodegeeks.com/2013/01/intellij-idea-generate-equals-hashcode-and-tostring-with-google-guava.html http://www.javacodegeeks.com/2013/01/intellij-idea-generate-equals-hashcode-and-tostring-with-google-guava.html#comments Fri, 18 Jan 2013 11:00:15 +0000 http://www.javacodegeeks.com/?p=7224 THE PROBLEM In the world of Java, we’re quite often in the need of writing equals, hashCode and toString methods. To be honest, this is usually only an boilerplate obligation. Thanks to smart IDEs, we don’t usually do this by ourselves anymore. We just let and IDE to do the hard work. There is one ...

 

]]>
http://www.javacodegeeks.com/2013/01/intellij-idea-generate-equals-hashcode-and-tostring-with-google-guava.html/feed/ 4
Spring – Adding AOP supporthttp://www.javacodegeeks.com/2012/09/spring-adding-aop-support.html http://www.javacodegeeks.com/2012/09/spring-adding-aop-support.html#comments Wed, 19 Sep 2012 11:48:00 +0000 http://www.javacodegeeks.com/2012/10/spring-adding-aop-support.html I heard a story about one senior (and quite highly paid) softwaree engineer. He was given task to log every method in every controller in project he was working on. Engineer rewrote all controller methods, so from code like this: @RequestMapping(method = RequestMethod.GET) public String showEmployees(Model model) { List<Employee> employees = employeeDao.list(); model.addAttribute('employees', employees); return ...

 

]]>
http://www.javacodegeeks.com/2012/09/spring-adding-aop-support.html/feed/ 1
Spring – Adding Spring MVC – part 2http://www.javacodegeeks.com/2012/09/spring-adding-spring-mvc-part-2.html http://www.javacodegeeks.com/2012/09/spring-adding-spring-mvc-part-2.html#comments Wed, 19 Sep 2012 11:41:00 +0000 http://www.javacodegeeks.com/2012/10/spring-adding-spring-mvc-part-2.html In the previous part we’ve implemented controllers for managers and employees. Now that we know our way around, we’ll do little (but just little) more complicated stuff – controllers for tasks & timesheets. So let’s start with org.timesheet.web.TaskController. First create a class and this time we will be accessing richer domain, so we’ll need to ...

 

]]>
http://www.javacodegeeks.com/2012/09/spring-adding-spring-mvc-part-2.html/feed/ 0
Spring – Adding Spring MVC – part 1http://www.javacodegeeks.com/2012/09/spring-adding-spring-mvc-part-1.html http://www.javacodegeeks.com/2012/09/spring-adding-spring-mvc-part-1.html#comments Wed, 19 Sep 2012 11:39:00 +0000 http://www.javacodegeeks.com/2012/10/spring-adding-spring-mvc-part-1.html Welcome to the fourth part of this tutorial. In this part, we will write controllers and views using Spring MVC and think about our REST model. First thing that we must do, is make a web application from what we have so far. We will add web/WEB-INF folder to our project root. Inside WEB-INF create ...

 

]]>
http://www.javacodegeeks.com/2012/09/spring-adding-spring-mvc-part-1.html/feed/ 1
Spring – DAO and Service layerhttp://www.javacodegeeks.com/2012/09/spring-dao-and-service-layer.html http://www.javacodegeeks.com/2012/09/spring-dao-and-service-layer.html#comments Wed, 19 Sep 2012 11:36:00 +0000 http://www.javacodegeeks.com/2012/10/spring-dao-and-service-layer.html Welcome to the third part of Spring tutorial. In this part, we will continue in writing our Timesheet application and this time we’ll implement DAO layer, business services and write some tests. In the previous part, we’ve defined GenericDao interface that tells us, what operations we will need to perform upon entities. Now we need ...

 

]]>
http://www.javacodegeeks.com/2012/09/spring-dao-and-service-layer.html/feed/ 6
Spring – Persistence layer – writing entities and configuring Hibernatehttp://www.javacodegeeks.com/2012/09/spring-persistence-layer-writing.html http://www.javacodegeeks.com/2012/09/spring-persistence-layer-writing.html#comments Wed, 19 Sep 2012 11:32:00 +0000 http://www.javacodegeeks.com/2012/10/spring-persistence-layer-writing-entities-and-configuring-hibernate.html Welcome to the second part of this tutorial. Don’t freak out when you see how long this article is – I promise you it’s mostly easy POJOs and some generated code. Before we start, we need to update our Maven dependencies, because we will be using Hibernate and Spring now. Add following dependencies to your ...

 

]]>
http://www.javacodegeeks.com/2012/09/spring-persistence-layer-writing.html/feed/ 3