• Home
  • RSS Feed
  • Log in

Posts Tagged ‘Groovy’


Why and When to use Groovy
Posted by Sunil Prakash Inteti in the early morning: January 2nd, 2009

I have just started learning Groovy few days back.The first thing that I have asked myself and searched for is ‘Why should i use groovy over java and When I can use Groovy. ?’

I am following the book ‘Programming Groovy’. The things I have understood regarding ‘Why’ part are
(more…)

Share

Tags: Groovy
Filed under Java | 18 Comments »


Grails Remoting with Hessian, Burlap and HttpInvoker
Posted by Erik Pragt at around evening time: September 25th, 2008

A short while ago, a collegue and I decided to write an application with Grails and Eclipse RCP. We choose Grails for the ease of development, and Eclipse RCP (in favor of Flex and Plain Old HTML) because we wanted to give our users a solid and native look and feel, for which Eclipse RCP works really well.

Since the Eclipse RCP front-end would actually be a remote front-end, we needed some kind of kind of communication between the client and the server. One of our first idea’s was to use XML-RPC, which is pretty well supported in Grails, but it would force us to to do some mapping between our domain and the XML. Since we wanted to use the same domain classes is Eclipse as in Grails (by exporting the Grails domain to external domain jars), we opted for a different approach: Burlap/Hessian.

(more…)

Share

Tags: burlap, Grails, Groovy, hessian, httpinvoker
Filed under Java | 8 Comments »


Using Groovy to keep your Maven and Fitnesse dependencies in sync
Posted by Erik Pragt around lunchtime: July 29th, 2008

The problem

What if you’re working with Maven, where you’ve got all your dependencies nicely organised, and now you decide to use any other piece of ‘classpath-aware’ software, like Fitnesse. The chances are that you’ll need to use the same classpath in Fitnesse as in Maven. A possible solution could be to maintain it by hand, but why not write a very small script for it to do it for you? My (very very very!) basic solution is to use a Groovy, because it’s easy to write, easy to read, and easy to use!
(more…)

Share

Tags: fitnesse, Groovy, Maven, script
Filed under General | 6 Comments »


More Groovy power
Posted by Lars Vonk just before lunchtime: July 6th, 2008

After my first real encounter with Groovy I got really excited about it and decided to spend some of my personal training days to get more experience with Groovy. As study material I read the Programming Groovy book. While reading I really wanted to get my hands dirty, so as a study case I decided to solve one of my longest and biggest frustrations as a developer and that is working behind a proxy server. The idea I had is to create a groovy program that will allow to turn the proxy settings on or off for applications like (Maven, Subversion, Internet Explorer, Firefox and so on) by running a single command: groovy com/xebia/proxy/SwitchProxy on/off. Here is a short summary of some of the techniques I used while creating this program.

(more…)

Share

Tags: Groovy
Filed under Java, Testing | 3 Comments »


Querying associations in Grails with HQL, Criteria and HibernateCriteriaBuilder
Posted by Erik Pragt mid-morning: June 4th, 2008

A thing I was playing with today was many-to-many relationships in Grails to create a Tag Cloud. To create a Tag Cloud, I must have a set of key/value pairs, each with a label and a value of the label, which could look like this:

['Java': 5, 'Grails': 16, 'Groovy': 12]

But to query this, I need to query a many to many relationship and produce the above result. This blog will describe how to do this with HQL, Criteria and the HibernateCriteriaBuilder.
(more…)

Share

Tags: Grails, Groovy, Hibernate
Filed under Java | 7 Comments »


Powerful Groovy
Posted by Lars Vonk mid-afternoon: May 25th, 2008

For my current assignment I need to write a script that basically does the following: open war file, download and add files from internet, remove files, change xml and property files, re-package war file.

In pure Java, this would be quite some work to implement. Of course there are several libraries available that will make unzipping, downloading etc a bit easier. But still it would be too much effort for such trivial tasks.

Since it is in fact a script I want to create, why not use a scripting language like Groovy. After two days of coding I must say am very happy with the progress I made given the fact that it is actually my first real Groovy programming experience.

Here are some experiences and code I created so far:
(more…)

Share

Tags: Groovy, IntelliJ
Filed under Java | 8 Comments »


JavaOne 2008 Day Three
Posted by Erik Jan de Wit in the early morning: May 9th, 2008

Today was the third day of the conference. Another couple of hours to go and then it is all over again. The fatigue is kicking in, and we’re starting to run on reserve power. The topics of today included:

  • Mylyn
  • Groovy
  • Semantic Web
  • SOA
  • OSGi

(more…)

Share

Tags: Groovy, Java, JavaOne, OSGi, Semantic Web, SOA
Filed under Java, SOA | 1 Comment »


JavaOne 2008 Day Two
Posted by Jeroen van Erp mid-morning: May 8th, 2008

Today was the second day of the JavaOne 2008. Besides doing a lot of chatting in the JavaOne pavillion, and visiting all the cool parties this night, we also went to a number of sessions. Also today the NLJug had the James Gosling meeting we won for being the biggest JUG out here. After a long day of work, we finally had time to relax at the Adobe party and at the SDN party.

Todays topics included:

  • Closures
  • JavaFx, Groovy and Google Android
  • Swing GUI testing
  • Scripting

(more…)

Share

Tags: Closures, Groovy, Java, JavaOne, Oracle, Scripting, SOA, Web Beans
Filed under Java, SOA, Testing | 1 Comment »


Helpful error messages in Grails
Posted by Erik Pragt around lunchtime: May 4th, 2008

Currenttly, I’m in the process of building a Grails application. While I’ve built several prototypes/quick hacks, this is actually the first ‘real’ application I’m building. “So”, I thought, “if this is a real application, I’m in need of some real tests!”. When you’re in the normal flow of developing a Grails application, everything goes so fast, you almost forget about writing the tests. So I decided to do it a bit differently, and do it just like in Java: do it TDD!
(more…)

Share

Tags: Grails, Groovy, Testing
Filed under Java, Testing | 2 Comments »


JavaOne 2008 Scripting preview
Posted by Jeroen van Erp at around evening time: March 13th, 2008

The biggest Java event of the year is coming up again, the JavaOne. For me this is a place of inspiration. Seeing the newest technologies in action and talking to some of the great minds in the Java world, how can one not become inspired!
(more…)

Share

Tags: Grails, Groovy, JavaOne
Filed under Java | 2 Comments »

← Older posts

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    Maven Spring TDD Xebia Agile Concurrency Control Scrum Flex JPA implementation patterns Oracle Scala Java Javascript JPA agile architectuur Moving to India Lean Ajax Groovy Grails SOA Eclipse Architecture XML Frameworks Hibernate ACT lean architecture lean architectuur product owner

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures