Blogs

Load balancing, failover with Tomcat hosting Grails application

Lately I had a task of configuring load balancing of Grails web application on Tomcat cluster. The logic of that solution is very easy.
You have one Apache instance that handles all incoming traffic to your web application. Apache is configured to transparently resend request to grater number of Tomcat instances gathered in cluster.
Sounds simple.. yeah. The logic is quite promitive but there are a few catches that can stop you for a while or make you use all-in-wonder solution like Terracota.
I choosed to configure all by myself. I divided my work into few steps:
- configuring Apache - mod_jk (load balancing)
- configuring Tomcat cluster with session replication (failover)
- configuring replication of Hibernate second level cache

What is Google Mini?

It's a Google solution for large web with a lot of content. It allows end users to easily find relevant information on your website. It delivers search results for both Internet or intranet users.

Android search dialog

Lately I was developing a search dialog in my android application.
I read very good documentation at android cental.

Introducing - git stash

Remember the time when you’ve been doing some changes on git repository, and the telephone rang just in the middle of coding?

Clients can be very convincing, when it comes to applying changes just in time.

In this situation git stash command can be very helpfull.

How to test remotly local GWT instance

In my working scenario I use SmartGWT on top of the grails application. Normaly I provide custom build server for testing team, but today there was a I need to let them use my local instance.

In GWT plugin manual I found a solution but unhappily it didn't work for me.

I found I need to modify grails plugin itself in ~/.grails directory.

Below you can find short description of what needs to be done.

Earning with Android

After some time working with android I started to look for possibilities to add some adds to applications.
Not mentioning mobile standards like AdMob I found AirPush which seems to be very intresting. Especially advanced possibilities to target add user. I will definitly give it a try.

Listing Grails Controllers and methods

In my daily job I’m a building SmartGWT application on top of grails server layer. I came to the point that I need all of +100 controllers to be secure. Moreover I need to distinguish which controllers actions should be given certain permissions. That’s a tough (boring) thing to do for that number of controllers.

Android for Everyone?

It could be a joke if someone tell us that PHP would be one of developing languages for mobiles, but the impossible is nothing for Android: http://www.developer.com/lang/php/article.php/3904261/Build-Your-First-P...

Who's the King

Answer: Google :) I'm really amazed what's going on at Android technology - last few weeks I look at it closer, thinking about become an developer after regular job time (but now I'm really confused if I shouldn't look for full time job - it's so brilliant technology). Yesterday I have looked at some blogs and found something what is a revolution in developing for mobiles: http://appinventor.googlelabs.com/about/. Developing with Idea plugin, or Eclipse is great, but this tool seems to be so simple to use, that market share of Android should get a huge impact.

LucidGaze

If you work with Lucene search or Solr, you probably would be interested in http://www.lucidimagination.com/Downloads/LucidGaze-for-Lucene - this is very useful monitoring tool, which most important features are:
* AnalysisStats: Analyzers, TokenFilters, TokenStreams, and Tokenizers, and which were used to produce the TokenStream for particular field
* DocumentStats: Number of documents indexed, as well as fields in the index

Recent comments

Syndicate content