June 26th, 2009 |
by akoelewijn |
published in
java, soa, web
Here’s a quick example how you can build a RESTfull Grails application and deploy it to Google App Engine. For this example you need Grails 1.1.1 and GAE SDK for Java version 1.2.1.
I’m going to create a small service which will return a wind forecast. The forecast data is hardcoded as this is just some [...]
April 20th, 2009 |
by akoelewijn |
published in
java, oracle
Oracle is probably the biggest user of the java applet technology. Oracle Forms runs as an Applet in the browser. Now, Oracle Forms isn’t the hippest tool ever, people have been expecting it to die for a couple of years. But it’s still around. Mainly because Oracle still uses Forms in their Oracle E-Business Suite.
Recently, [...]
April 20th, 2009 |
by akoelewijn |
published in
java, oracle, oss
So Oracle just bought Sun. At first look it might seem like closed source versus open source. Most of Oracle’s well known products are closed source, whereas most of Sun’s products are open source. But that’s not the full story. Oracle is also involved in Open Source. It just takes a different approach.
There are a [...]
April 8th, 2009 |
by akoelewijn |
published in
java
Google just announced that their AppEngine will support Java. The good new: AppEngine is going to use a fairly regular JVM, with some functionality disabled like sockets and file writing. It should support other languages that compile to bytecode, like Scala or JRuby. No mention of Groovy, but i hope that’ll work soon too. Update: [...]
March 11th, 2009 |
by akoelewijn |
published in
java, oss, soa
I’m still playing around with groovy scripting. It’s an excellent way to quickly prototype some ESB scenarios. Last week i blogged about using groovy to write files to a gtalk account using Apache Camel, the example below shows you how to start an ActiveMQ broker, which persists messages to a PostgreSQL database. An Apache Camel [...]
March 11th, 2009 |
by akoelewijn |
published in
java, oss, soa
The latest release of Java Magazine contains an article i wrote titled: Client Server 2.0 with jQuery and Grails. Unfortunately, not all code examples fitted into the magazine. You can download the complete article, including screenshots and sourcecode here: Client Server 2.0 met jQuery en Grails (dutch).
February 18th, 2009 |
by akoelewijn |
published in
java, open standards, oss
I wrote a small Python program today, to see if a could create a workaround for a problem i have in Java. I’ve written a couple of Java applications that use OpenOffice’s API to create ODF and MS-Word documents. The OpenOffice API that i used in Java is pretty horrible: very verbose, not intuitive. You [...]
February 17th, 2009 |
by akoelewijn |
published in
java, oss
I’m stuck with OpenOffice. I’m hoping somebody can help me with this. I’ve also posted the question to the OpenOffice.org forums and to StackOverflow, but so far no luck.
I’m trying to replace a field in an openoffice document using the OpenOffice java api. I’m using the insertString method:
xText.insertString(((XTextField) fieldMaster).getAnchor(), value.toString(), false);
The stacktrace is [...]
February 4th, 2009 |
by akoelewijn |
published in
java
Mainly as a reminder to myself, here’s how you target different environments with grails.
Grails knows about three environments out of the box: development, test, production. When you create a war file you can specify the environment after the grails command:
grails test war
Sometimes, (actually quite often), you have more environments. For example a user acceptance testing [...]
January 30th, 2009 |
by akoelewijn |
published in
java
I was just going through the Grails 1.1 beta 3 release notes and found that Grails 1.1 is not only going to support Maven but also has Ivy support for those who prefer using Ant.
Good news in my opinion. I still use Ant quite a bit, on projects that are not standard enough to be [...]