Java Code Geeks http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Wed, 01 Apr 2015 16:00:21 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 Microservices, Monoliths, and NoOpshttp://www.javacodegeeks.com/2015/04/microservices-monoliths-and-noops.html http://www.javacodegeeks.com/2015/04/microservices-monoliths-and-noops.html#comments Wed, 01 Apr 2015 16:00:21 +0000 http://www.javacodegeeks.com/?p=38846 Monolithic Applications A monolith application, in layman terms, is where entire functionality of the application is packaged together as a single unit or application. This unit could be JAR, WAR, EAR, or some other archive format, but its all integrated in a single unit. For example an online shopping website will typically consists of customer, product, catalog, checkout, and other features. Another ...

 

]]>
http://www.javacodegeeks.com/2015/04/microservices-monoliths-and-noops.html/feed/ 0
Java Web App Architecture In Takes Frameworkhttp://www.javacodegeeks.com/2015/04/java-web-app-architecture-in-takes-framework.html http://www.javacodegeeks.com/2015/04/java-web-app-architecture-in-takes-framework.html#comments Wed, 01 Apr 2015 13:00:57 +0000 http://www.javacodegeeks.com/?p=38845 I used to utilize Servlets, JSP, JAX-RS, Spring Framework, Play Framework, JSF with Facelets, and a bit of Spark Framework. All of these solutions, in my humble opinion, are very far from being object-oriented and elegant. They all are full of static methods, untestable data structures, and dirty hacks. So about a month ago, I ...

 

]]>
http://www.javacodegeeks.com/2015/04/java-web-app-architecture-in-takes-framework.html/feed/ 0
JAXB Is Doing It Wrong; Try Xemblyhttp://www.javacodegeeks.com/2015/04/jaxb-is-doing-it-wrong-try-xembly.html http://www.javacodegeeks.com/2015/04/jaxb-is-doing-it-wrong-try-xembly.html#comments Wed, 01 Apr 2015 13:00:08 +0000 http://www.javacodegeeks.com/?p=38844 JAXB is a 10-year-old Java technology that allows us to convert a Java object into an XML document (marshalling) and back (unmarshalling). This technology is based on setters and getters and, in my opinion, violates key principles of object-oriented programming by turning objects into passive data structures. I would recommend you use Xembly instead for ...

 

]]>
http://www.javacodegeeks.com/2015/04/jaxb-is-doing-it-wrong-try-xembly.html/feed/ 0
Dangerous Wordshttp://www.javacodegeeks.com/2015/04/dangerous-words.html http://www.javacodegeeks.com/2015/04/dangerous-words.html#comments Wed, 01 Apr 2015 10:00:54 +0000 http://www.javacodegeeks.com/?p=38839 Ludwig Wittgenstein was one the greatest philosophers of 20th century. His book Tractatus Logico-Philosophicus addresses the limits of language and its relationship with reality. A friend of mine, great polemicist, suggested me to read it some years ago to understand one of his favourites conversational deux ex machina: “I can’t prove that, because of the ...

 

]]>
http://www.javacodegeeks.com/2015/04/dangerous-words.html/feed/ 0
Dismantling invokedynamichttp://www.javacodegeeks.com/2015/04/dismantling-invokedynamic.html http://www.javacodegeeks.com/2015/04/dismantling-invokedynamic.html#comments Wed, 01 Apr 2015 07:00:13 +0000 http://www.javacodegeeks.com/?p=38838 Many Java developers regarded the JDK’s version seven release as somewhat a disappointment. On the surface, merely a few language and library extensions made it into the release, namely Project Coin and NIO2. But under the covers, the seventh version of the platform shipped the single biggest extension to the JVM’s type system ever introduced ...

 

]]>
http://www.javacodegeeks.com/2015/04/dismantling-invokedynamic.html/feed/ 0
ChronicleMap – Java Architecture with Off Heap Memoryhttp://www.javacodegeeks.com/2015/04/chroniclemap-java-architecture-with-off-heap-memory.html http://www.javacodegeeks.com/2015/04/chroniclemap-java-architecture-with-off-heap-memory.html#comments Wed, 01 Apr 2015 04:00:15 +0000 http://www.javacodegeeks.com/?p=38813 My last post was written a couple of weeks ago and after some valid feedback I’d like to clarify a couple of points as a preface to this article. The main takeaway from ‘Creating millions of objects with Zero Garbage‘ should be that with Chronicle you are not ‘limited’ to using jvm allocated on-heap memory when ...

 

]]>
http://www.javacodegeeks.com/2015/04/chroniclemap-java-architecture-with-off-heap-memory.html/feed/ 0
Deploying Code Fast? Here’s How to Tell If You Broke Somethinghttp://www.javacodegeeks.com/2015/04/deploying-code-fast-heres-how-to-tell-if-you-broke-something.html http://www.javacodegeeks.com/2015/04/deploying-code-fast-heres-how-to-tell-if-you-broke-something.html#comments Tue, 31 Mar 2015 22:00:39 +0000 http://www.javacodegeeks.com/?p=37430 Here at Takipi, we’re in the error tracking business. Each day, Takipi is used to track more than 500,000 errors across hundreds of different companies. The most critical and fragile stage for many apps is just after a new deployment – when code changes are tested for the first time under a high stress load ...

 

]]>
http://www.javacodegeeks.com/2015/04/deploying-code-fast-heres-how-to-tell-if-you-broke-something.html/feed/ 0
While You Were Sleeping: The Top New Java 8 Additionshttp://www.javacodegeeks.com/2015/03/while-you-were-sleeping-the-top-new-java-8-additions.html http://www.javacodegeeks.com/2015/03/while-you-were-sleeping-the-top-new-java-8-additions.html#comments Tue, 31 Mar 2015 19:00:54 +0000 http://www.javacodegeeks.com/?p=38812 What are some of the most interesting additions to Java 8 since it was launched? Java 8 recently celebrated its first birthday, with the main release coming just over a year ago now. That’s certainly worthy of a celebratory cupcake. Since the initial Java 8 version came out, six updates have been released. Some of ...

 

]]>
http://www.javacodegeeks.com/2015/03/while-you-were-sleeping-the-top-new-java-8-additions.html/feed/ 0
Writing Clean Tests – Trouble in Paradisehttp://www.javacodegeeks.com/2015/03/writing-clean-tests-trouble-in-paradise.html http://www.javacodegeeks.com/2015/03/writing-clean-tests-trouble-in-paradise.html#comments Tue, 31 Mar 2015 16:00:36 +0000 http://www.javacodegeeks.com/?p=38799 If our code has obvious faults, we are very motivated to improve it. However, at some point we decide that our code is “good enough” and move on. Typically this happens when we think that the benefits of improving our existing code are smaller than the required work. Of course, if we underestimate our return ...

 

]]>
http://www.javacodegeeks.com/2015/03/writing-clean-tests-trouble-in-paradise.html/feed/ 2
Message Content Filtering with WSO2 ESBhttp://www.javacodegeeks.com/2015/03/message-content-filtering-with-wso2-esb.html http://www.javacodegeeks.com/2015/03/message-content-filtering-with-wso2-esb.html#comments Tue, 31 Mar 2015 13:00:26 +0000 http://www.javacodegeeks.com/?p=38798 Every integration architect or developer should be familiair with Enterprise Integration Patterns (EIP) as described by Gregor Hohpe and Bobby Woolf. One of the patterns is the ‘Content Message Filter’ (not to be confused with the Message Filter pattern). There are multiple ways to achieve this in WSO2 with different Mediator. One way is using ...

 

]]>
http://www.javacodegeeks.com/2015/03/message-content-filtering-with-wso2-esb.html/feed/ 0