Techspace

IT happens only in IT

Groovy – Hype or Hope?

groovy
Last week I have attended a Java User Group meeting in Bloomington, MN. The speaker Mark Rausch made a solid case for Groovy as the gen-next application.
He talked about how Java Scripting recognizes the “pain points” of the Java Developer community.
Learning Groovy and using is not difficult at all. Unlike other languages which force you to learn new syntax or think Class and objects differently, Groovy is Java. In fact, you have been writing Groovy all along. If you rename .java file to .groovy, it is a compilable groovy program.
Learning it and using it is very easy because of the smooth learning curve. It is worth trying. I will soon write (Really Simple) steps to write your first groovy program.

April 13, 2009 Posted by | Groovy | Leave a Comment

(Really) Simple Steps to write GWT app

April 12, 2009 Posted by | GWT | Leave a Comment

(Really) Simple Steps to write WebServices using AXIS

Coming Shortly

April 12, 2009 Posted by | Axis, WebServices | 2 Comments

Beautiful Architecture

Beautiful Architecture

I have received this book from one of the Java User group meeting I attended on Tuesday April 7, 2009. I have gone through the first chapter and reviews on amazon and it looks like an interesting book.
It’s always nice to know the views of leading architects on wide variety of topics

April 9, 2009 Posted by | Book Reviews | Leave a Comment

Hibernate Query Cache

Hibernate provides sophisticated caching mechanisms to improve the performance. Apart from
First-level, Second-Level and query cache, Hibernate can be configured to make use of some open source cache solutions like EHCache or JBoss Cache etc.

If your Hibernate query yields huge but similar results every time it is executed, it is a good idea to cache the results in hibernate to improve the performance. This could be achieved by first enable the hibernate query cache in the hibernate configuration
in properties file

hibernate.cache.use_query_cache true

or xml configuration file like
<property name="hibernate.cache.use_query_cache">true</property>

and while executing the query specify the cacheability like this

sess.createQuery("from.......")
    .setCacheable(true)
    .list();

April 7, 2009 Posted by | Hibernate | , | 1 Comment

SQLGrammarException could not fetch initial value for increment generator

In the earlier versions of Hibernate, may be hibernate 2.x, if you use increment generator on a new table then you might get this error. If you really need to use the increment generator on the new table then you need to create a dummy row on that table.
This issue is not present in the current version of hibernate i.e. Hibernate 3.x

April 7, 2009 Posted by | Hibernate | , | 1 Comment

   

Follow

Get every new post delivered to your Inbox.