Home » 2012 (page 22)

Yearly Archives: 2012

MongoDB From the Trenches: Masochistic Embedded Collections


MongoDB supports rich documents that can include, among other things, embedded documents. This feature embodies a has-a relationship quite nicely and can, if modeled properly, reduce the number of finds required to ascertain certain data as there are no joins in Mongo. As classic example of embedding a collection of documents inside a parent document is contact addresses (i.e. mailing, ...

Read More »

Apache OpenOffice vs LibreOffice: Make love, not war.


Before a good while something terrible happened at Oracle. The result was that a lot of developers made a fork of OpenOffice.org and called it LibreOffice from that day on. We can be glad about that. It is my personal opinion that without this fork Oracle would not have donated OpenOffice.org to the Apache Software Foundation to become Apache OpenOffice. ...

Read More »

Running Drools 5.4.0 Final as a JBoss AS 7 module


Drools 5 introduces the Business Logic integration Platform which provides a unified and integrated platform for Rules, Workflow and Event Processing. It’s been designed from the ground up so that each aspect is a first class citizen, with no compromises. Drools 5 has splitted up into 4 main sub projects: Drools Guvnor (BRMS/BPMS) Drools Expert (rule engine) Drools Flow (process/workflow) ...

Read More »

Deep diving into Cloning


Before we proceed with the cloning concept let’s refresh our basics with the object creation concept. When the objects are created using the new operator the objects gets the memory allocation in the Heap. In Java ideally objects are modified through reference variable only i.e. only the memory address of the object is copied and hence any changes in the ...

Read More »

Java2Days 2012: Java EE


The Java2Days conference is the major event in Eastern Europe to present the latest trends in Java development. This year, it took place in Sofia, Bulgaria on 25 – 26 October. I was there and enjoyed the opportunity to taste some cutting edge Java, cloud, and mobile content delivered right to my home city, together with few of my colleagues ...

Read More »

Couchbase : Create a large dataset using Twitter and Java


An easy way to create large dataset when playing/demonstrating Couchbase -or any other NoSQL engine- is to inject Twitter feed into your database. For this small application I am using: Couchbase Server 2.0 Server Couchbase Java SDK (will be installed by Maven) Twitter4J (will be installed by Maven) Twitter Streaming API called using Twitter4J In this example I am using ...

Read More »

Request and response – discovering Akka


In the previous part we implemented our first actor and sent message to it. Unfortunately actor was incapable of returning any result of processing this message, which rendered him rather useless. In this episode we will learn how to send reply message to the sender and how to integrate synchronous, blocking API with (by definition) asynchronous system based on message ...

Read More »

Investigating Deadlocks – Part 4: Fixing the Code


In the last in this short series of blogs in which I’ve been talking about analysing deadlocks, I’m going to fix my BadTransferOperation code. If you’ve seen the other blogs in this series, you’ll know that in order to get to this point I’ve created the demo code that deadlocks, shown how to get hold of a thread dump and then analysed ...

Read More »

Polyglot Persistence: EclipseLink with MongoDB and Derby


Polyglot persistence has been in the news since some time now. Kicked off by the famous Fowler post from end 2011 I see more an more nice ideas coming up. Latest one was a company internal student project in which we used Scala as a backend persisting data into MongoDB, Derby and Solar. I’m not a big fan of Scala and ...

Read More »

20 Kick-ass programming quotes


This post serves as a compilation of great programming quotes, quotes from famous programmers, computer scientists and savvy entrepreneurs of our time. Some of them are funny, some of them are motivational, some of them are… just awesome! So, in no particular order, let’s see what we have…

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.