Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Instant Continuous Integration via the cloud

Looking to get Continuous Integration running for your project in short order? I recently took a look at CI in a Box, which is a

cloud based solution that provides Hudson, as a CI server, Java 6, Ant and Maven 2

Read more ...

 

Grails hip tip: working behind a proxy?

If you find yourself behind a bogue proxy when working with Grails, you might find it difficult to download various plug-ins. Nevertheless, the Grails team already solved this problem for you — simply issue the set-proxy command via the command line and a nifty script will prompt you for any required credentials.

Read more ...

 

easyb 0.9.6 released

The easyb team is excited to announce that version 0.9.6 is out! This version adds a number of hip features including:

Read more ...

 

easyb now supports re-running failed behaviors

The latest version of easyb (that is, 0.9.6) contains two new features (among others, man):

Read more ...

 

Continuous Integration with Grails

My friend, John Ferguson Smart recently wrote an article for java.net entitled “Grails and Continuous Integration: An Essential Combo” in which he demonstrates how to leverage Hudson’s Grails plug-in. Hudson is a hip CI server and having the ability to monitor a Grails project is quite neat. I highly recommend reading his article!

Read more ...

 

Subversion with proxies

If you happen to reside on a network that requires proxy authentication, command-line Subversion won’t work. Unless, of course, you configure Subversion to leverage a proxy correctly.

Read more ...

 

Configuring Gant and Ivy to work with a proxy

If you find yourself behind a proxy and happen to be attempting to build a software project that leverages both Gant and Ivy (as I was recently) you’re in for a surprise: Ivy won’t download the required project dependencies.

Read more ...

 

Hello Google App Engine

As I’ve written about before, open source solutions and borrowed infrastructures are changing the character of

Read more ...

 

Increasing Tomcat’s memory

If you happen to casually peruse the Grails documentation, you might notice the following note regarding memory (please note, man, that the emphasis has been added by yours truly):

If memory is not a problem on your server then allocate a large amount of memory, such as 512M or more. Also use the server VM option. EG: (-server -Xms512M -Xmx512M). Usually it is better to set both min and max heap size to the same in server applications.

Read more ...

 

XML validation is easyb

Ever find yourself needing to validate XML? If so, you might want to consider using XMLUnit. As I’ve written before:

When you get that feeling that you’re working too hard, you can usually assume someone else has figured out an easier way to solve the problem. When it comes to programmatically verifying XML documents, the solution that comes to mind is XMLUnit.

Read more ...

 

Anonymous classes are Groovy’s bag

Because it’s my bag, I’ve found that many Java developers aren’t aware of how to leverage anonymous classes. Indeed, they are an extremely handy feature, which can yield concise, but expressive code (even in Java, baby). Briefly, an anonymous class is

a local class without a name. An anonymous class is defined and instantiated in a single succinct expression using the new operator.

Succinct is such a hip word, man, don’t you think?

Read more ...

 

Proxies with Cargo

Cargo is hip project that automates container management in a generic fashion, such that the same API used to deploy a WAR file to Tomcat can also start and stop JBoss. Cargo can also download and install a container automatically (which happens to be one of my all time favorite features!).

Read more ...

 

Validating maps with easyb

Often times I find myself needing to validate the contents of a hip map — that is, during the course of a story or specification, I need to ensure that a certain value, key, or name-value pair is present in an instance of some Map.

Read more ...

 

Instant Google App Engine

Getting up and running on the App Engine couldn’t be any easier, man — in fact, Google even provides an Eclipse plug-in that handles just about everything for you! In order to get started though, you do need an App Engine account (which is free, by the way). Once you’ve done that, you can download the Eclipse plug-in via Eclipse’s Software Update feature as shown below.

Read more ...

 

To recurse or not: Euler challenge #2

Having stumbled upon Project Euler sometime ago and solving the first problem, this disco dancer from the Age of Aquarius thought it was time to tackle problem two, which states:

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …

Find the sum of all the even-valued terms in the sequence which do not exceed four million.

Read more ...

 
Syndicate content