Home » 2012 (page 144)

Yearly Archives: 2012

Apache Camel – A little Scala DSL example

So we have a Scala DSL in Apache Camel for many years now, and I guess its about time I wrote a little blog entry about this (has been on my todo list for a while). So the Scala DSL is of course using the Scala programming language which has many bells and whistles over plain Java. However the uptake ...

Read More »

Tomcat & IntelliJ – Deploy war files outside webapps folder

At present I am working on developing an Android application that needs to be supported by a slew of REST services hosted in the cloud. I chose Google App Engine based on its support for Java, Groovy and most importantly Spring. I developed a Spring MVC based REST application and used ContentNegotiatingViewResolver to negotiate content based on request URL extensions. ...

Read More »

Google Appengine Staging Server Howto

Out of the box, Google’s App Engine supports versioned deployments. You can switch back and forth between revisions very easily, which is a great feature for properly testing an application before going live. There is one major problem: All versions of the application share the same datastore. So if you’re migrating your data you run a serious risk of influencing ...

Read More »

Spring MVC – Flash Attributes

spring-interview-questions-answers

Latest Spring Framework incarnation (3.1) brought interesting feature called Flash Attributes. It is remedy for the problem mentioned a long time ago, in one of my posts: Spring MVC – Session Attributes handling. This problem can be described in few words: if we want to pass the attributes via redirect between two controllers, we cannot use request attributes (they will ...

Read More »

Set up a Java EE 6 development environment

This tutorial explains in short how to set-up a typical environment to develop Java EE 6 based applications. There is no prerequesite to this tutorial other then a working Windows XP client with sufficient CPU power and memory. During the tutorial we will need to install the following components: Java 6 JDK Update 26 Eclipse IDE for Java EE Developers ...

Read More »

Android – Read file from Assets

Description: First of all, let me give you a link: AssetManager, through this class we can easily access any files lying inside the Assets directory of android application. (or any sub-folders inside the Assets directory). Now, we can have an object of AssetManager class by using getAssets() method: AssetManager assetManager = getAssets(); And the rest of the procedure i have ...

Read More »

Implementing Active Record Pattern with Spring AOP

During class design we should take decisions about the assignment of responsibilities that will have every class. If we have chosen well, systems tend to be easier to understand, maintain and extend. Almost all of our projects have a persistence layer, either relational database, document stores, or simply XML files. And typically you will use DAO pattern to implement abstract ...

Read More »

Free Copies of Android books Giveaway Roundup

Hello fellow Java Geeks! Our first giveaway of Packt Publishing’s best selling books on Android has ended. The Prize Winners The 3 lucky winners that will receive the ebook prizes are (names are as appeared on their emails) : Nir M Cihad Emre Mark Lambert Each one of the 3 winners will recieve 2 copies (one of each ebook) of the following ...

Read More »