Skip to main content

You are currently viewing the Trifork Blog, to view our full website please go to Trifork.com

What to do with an Interruptedexception

Many java methods, such as Thread.sleep and Process.waitFor can throw an Interruptedexception. InterruptedException is a checked exception and as such requires you to explicitly catch it. Up until recently I’ve always simply swallowed this exception. I was fairly confident that this was the proper way to deal with this exception because this is how I’d […]

JPA missing non-exotic features

Ever since the Java Persistence API was announced there has been a lot of talk, both good and bad, about this specification. Many people have pointed out that a criteria API and something like hibernate filters are currently missing. However these features might be considered “exotic” and I can largely live without them. However a […]

XGL and java

A couple of months back I tried out a very nice opengl based x server called XGL. I followed the instructions outlined at http://www.ubuntuforums.org/showthread.php?t=131267 and had it working in record time. However there was one catch. Java applications would not render properly. For instance when I would start intelliJ Idea all the dialogs , menu […]

Integrating Spring and GWT

I just completed my first shot at integrating Spring with GWT. You can check it out here Here’s what you do to expose a simple service. 1) Write the remote service, note that the service no longer extends RemoteServiceServlet however HelloService should still implement RemoteService public class HelloServiceImpl implements HelloService { public String sayHello(String name) […]

Google WebToolkit remoting

Last week I started playing around with the google webtoolkit an Ajax framework that allows software engineers to develop complex ajax web interfaces in java rather than javascript. I found the google webtoolkit not without it’s limitations, most noteably it is very hard to style / layout pages compared to jsp templates etc. But I […]