Tech Blogs

Embedding and Testing Drools Flow in your Java Project

Reading Time: 2 minutes Drools Flow provides workflow capabilities and can easily integrate rules with processes. You can easily define the series of steps that would be followed in a workflow using the flowchart based approach to get a rule file. All this works like a charm with the drools plugin in eclipse and if you are interested then there is good information here to work with the plugin. Continue Reading

Google Apps: Creating a Workflow Based Expense Tracking System

Reading Time: 5 minutes In my last example on Google Apps within the enterprise, you had seen how easy it was to implement a Leave tracking system with the help of Google Apps. In this post, we would look at the introduction of workflow in an expense system and also how easy it is to embed the system in your existing Google sites infrastructure. Note:- This example enhances the Continue Reading

Testing Jersey Based REST Services with Grizzly

Reading Time: 2 minutes In my last post, we had seen how easy it was to create REST based services with Spring and Jersey. In this post we would quickly see how we can unit test them. Ok, this is not entirely a unit test in the strict sense because we are not testing the resource in isolation but it is a good strategy nevertheless because it helps us Continue Reading

Just REST, it’s Easy With Spring and Jersey

Reading Time: 4 minutes In one of the products that we are working on, there is a need to expose the API as REST so that it can be consumed by the developer community and foster innovation. I did a few prototypes for the combination of dependency injection and REST with Restlet, Guice, Jersey and Spring and finally settled with Jersey and Spring primarily due to the easy configuration Continue Reading

Simply OAuth-ing for Twitter

Reading Time: 4 minutes All right, I am the hottest twitter application called TweetDekk (replace it with any hypothetical name) and I want you to give me your twitter username and password so that you can send tweets using me. Sounds scary? May be it was not that scary a year back when Twitter had not moved to OAuth. However, now many of us would not dare to share Continue Reading

Working With Spring Data JPA

Reading Time: 3 minutes SpringSource have recently released the first milestone of Spring Data JPA project. What are its features? and how can we use them. Spring framework already provides support to build a JPA based data access layer. So, what does Spring Data adds to it. I used it for one small application and found significant reduction of code. In this post we will use an Employee entity Continue Reading

Adding Rules to Drools Guvnor Programmatically with WebDAV

Reading Time: 4 minutes First, a very basic introduction before we get into code. Drools is a Business Logic integration platform which offers an integrated platform for Rules, workflow, event processing etc. Drools started off as a Rete based rule engine but over the years has evolved to have multiple sub-projects. Main ones of course are Drools Expert (Rule Engine), Drools Flow (process/workflow) and Drools Guvnor ( Business Rules Continue Reading

Code Smell : Primitive Obsession

Reading Time: 2 minutes Primitive Obsession is when the code relies too much on primitives. What this means is that a primitive value controls the logic in a class and this primitive value is not type safe. For example, there are multiple situations in which we might consider the use of String for comparison and driving the logic even though we are fully aware that it might result in Continue Reading

Configuring Spring Application Using Configuration Annotation

Reading Time: 2 minutes A Spring Module called Java Config has been there for some time now. With the release of Spring 3.0 SpringSource has pulled this module into the core Spring Framework as @Configuration. How can we use this @Configuration in our application? and should we use it when we have XML and annotations for configuration already? In Spring 2.5 we find that there is a support for Continue Reading

Respecting Open Closed Principle with Visitor Pattern

Reading Time: 3 minutes One of the common principles in the bouquet of SOLID principles is the Open Closed Principle (OCP) which states that software entities should be open for extension but closed for modification. This means that if we have to add any new functionality then ideally, we should be able to extend the current set of software entities by adding a new entity rather than creating a Continue Reading

Preparing a Leave Tracking System in less than 30 minutes with Google Apps

Reading Time: 3 minutes On one of our fun filled iBAT sessions, we decided to build something which would be quick and also have business value for Inphina. Amongst the top candidates was a leave tracking system. Inphina is an Agile organization and believes that when one has to take a leave then one has to take a leave. But, our accountants also need the records for accounting and Continue Reading

Creating a Management Dashboard with Google Apps in 10 minutes

Reading Time: 4 minutes All of us have had situations in which, the enterprise that we are working with, would like to have quick snapshots of the various metrics on the dashboard. These should not only be readily available, but also be refreshed with real data in real-time so that the latest on the health of the organization/business is at the fingertips. We had a similar situation when we Continue Reading

Case Study: Migrating an Enterprise Application to Google App Engine

Reading Time: < 1 minute Recently at Business Technology Summit 2010, Inphina presented the journey notes of migrating an Enterprise time-sheet and invoicing application to the Google App Engine. The presentation talked about the Business context, Evaluation criteria, Bottlenecks and pitfalls that we faced during the migration and the Conclusions. We received a great response at the conference and have already helped few organizations prepare a blue print for migrating Continue Reading