Category: Java
-
Starting and Stopping Services from Java
Most of the applications I develop are web based and therefore, when deployed on Windows, are running as a service. This is great most of the time but when I want to programmatically control the application it can present some problems because starting and stopping services requires elevated permissions. This article discusses a solution that…
-
Providing EL Access for Beans
There are a lot of good ideas in JEE but there are also some sharp corners that the unwary developer could hurt themselves on. Over the next few articles I’m going to point out a few of these less than brilliant pieces of design so that hopefully you’ll be able to avoid them. This article…
-
MySQL JDBC Connection Pool in GlassFish
Creating a connection pool should be a simple and straight forward task in an application server but sometimes it just becomes unnecessarily difficult. That is completely true for creating MySQL connections pools in all versions of GlassFish from 3 onwards.
-
JavaFX 2 Generic Editable Table Cells
A few days ago I wrote an article which gave a more complete example of editable table cells in JavaFX 2.0. In that article I promised another article discussing how to make generic editable tables cells since the first article just expected everything to be a string. I’m fairly happy with this solution to the…
-
Complete JavaFX 2 Editable Table Example
The JavaFX 2 documentation is generally very well written but I found the discussion of the TableView component to be slightly lacking. It demonstrates the construction of a basic table with multi-level column headers and it shows the most basic example of editing. Any real application will want a much more complete handling of cell…
-
MySQL Triggers and UUID
One of the applications I maintain currently only runs against Microsoft SQL Server. For the most part this hasn’t proven to be that much of a problem as everyone who uses the application also runs MS SQL. The problem comes when I want to deploy and test it on one of the company servers because…
-
Hudson Hell
For a while now I’ve been meaning to get Hudson installed and running but what with one thing and another I’ve always put it off (I put it down to being a lone developer). What with everything else going on things like Hudson get pushed to the back of the queue all the time even…
-
JavaFX 2.0 and Maven – Part 4
The final part of the Maven JavaFX build is getting NetBeans to correctly run the application. This, it turns out, is more difficult than I expected. This discussion covers a the problems quite well and is worth a read. I will admit up front that the solution I give here is not pretty, in fact…
-
JavaFX 2.0 and Maven – Part 3
This (hopefully) final instalment of this series of articles on building JavaFX applications with Maven will refine what was done in the previous article. The previous article got us to the point where we were able to build a stand alone JavaFX application this article aims to do that with flare and produce roughly the…
-
JavaFX 2.0 and Maven – Part 2
The previous part of this article covered how to set up a Maven project for JavaFX 2.0 and how to provide the required dependency. This part of the article will show you how to build a runnable jar file.
-
JavaFX 2.0 and Maven
I decided to have a bit of a play with JavaFX 2.0 the other day as we have a project coming up that may be a good candidate for using it. My first impression of JavaFX 2.0 is generally very positive, it’s a lot like Swing with the sharp edges knocked off. I’d like to…
-
Setting a value to null with EL
Beginning with Expression Language (EL) 2.2 it is possible to call method with arguments. I feel that most of the time it is generally a good idea to try not to use this feature because it breaks the KISS principal but when you need it it can be a life saver.