In a previous post I talked about solving a business problem with some open source technologies and this is the first installment of that series.
Since the decision was made on what the environment was going to be comprised of I thought it might be prudent to see if I could actually put the pieces in place to accomplish my project.
The end goal is to deliver an application using Grails and Glassfish so I downloaded Glassfish V2 UR1 an installed it on my Mac server. Just download the binary for your platform and install it according to the instructions on the download page and you’re set, the Quick Start Guide will have you up and running in minutes.
This turned out to be a very simple step in the process and I am very impressed with Glassfish at this point but more on that later. I had it installed and running in minutes and successfully deployed a small application to test it. All I had to add was the MySQL JDBC jar file to the domain lib folder and I soon had a couple of jdbc connection pools working.
I then downloaded Subversion 1.4.6 and installed it, again with no difficulties, so I now have the application server, VCS and database ready to go. I’m using the MySQL that shipped with Leopard as well as the default JDK (1.5) to keep things as simple as possible.
My next install was Netbeans and the hardest part of this was, which one to choose? You have 5.5.1, 6.0.1 and 6.1 Beta all available in various configurations so I chose 6.1 Beta with everything. This install went as smoothly as the rest and everything appears to be working fine. I chose the NetBeans, Glassfish and openesb packages from the downloaded image and decided to ignore the tomcat package since it’s not part of the project.
The last part of the environment to be installed was Groovy and Grails and the instructions here had me going in minutes with Netbeans. The last part of today’s exercise was to wire the pieces together so I followed one of the Grails tutorials using Netbeans and assembled a tiny program. I imported that application into Subversion through Netbeans to test that connectivity and I was pleasantly surprised at how well that went. The last step for the day was to generate a war file of the Grails app and deploy it under Glassfish. I created the war file from within Netbeans and deployed it using the Glassfish Administration console and, of course, it worked just fine.
At this point in my exercise I have my development and production environment in place and I’ve invested about 2 hours in the project. Please keep in mind that this is just an exercise for me and when I talk about my “production” environment it’s just a basic install of the application server and database. In my next article I’ll get started describing the application.
Sphere: Related Content