| New Toys
I've just starting working on a project using JiniTM network technology, Project Rio, the JavaTM 5.0 platform, and the NetBeansTM 4.0 IDE. Very cool stuff. This is the first major project I've done with Jini technology, and the first time I've touched Rio. I feel so modern.
First, I have to admit that I really feel the lack of an RMI or Jini technology plugin for NetBeans. A registry or lookup server browser would be really nice. (There used to be one under 3.5. What happened to it?) The Ant integration and JDK 5.0 support more than make up for it, though.
Finally being able to use the typesafe enums and generics in a project makes me very happy. It's exciting to how these new features make such an obvious improvement in my code. I'm also looking forward to giving the JMX module a whirl if there's time.
Rio is an interesting beast. When I implemented my first Rio service, I started by building a main() method that kicked off a discovery process to find lookup servers so it could register itself and then used a lease manager to keep the lookup entry fresh. Lots of code just to get the service running. Then, as I was wondering how to get the thing plugged into Rio, it occured to me that everything I just wrote is already provided by Rio. Instead of bothering with instantiating and registering my service instance, I just extend my class from ServiceBeanAdapter and all the rest happens magically. Jini made easy, who'da thunk it?
|