Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blog Entries by Topic

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


J2SE

I got a lot of questions about JNI after my Mac OS X for Java Geeks book was published. I just wrote an article for ONJava, Mac OS X JNI Revisited. While writing the article, I was mostly focused on answering reader questions, but as I was working, I started to wonder why JNI development was just so hard. When I was working at Apple, there was some interesting work done on native integration...
on Oct 9, 2003
I was putting TrackBack support into Pebble the other day and the found that the technical details of a TrackBack involve sending a HTTP POST request to the remote server. I've implemented HTTP POSTs before using the classes in the java.net package, but rather than write all this code again, I thought that I'd take a look at Jakarta Commons HttpClient. What can I say ... this is another top...
on Oct 6, 2003
I read Bill Venner's interview with James Gosling, "Failure and Exceptions," and with Anders Hejlsberg, "The Trouble with Checked Exceptions," and was a little surprised. I thought exceptions would be in .Net since .Net has taken so many other features from Java. I've never found checked exception clauses to be much of a burden. It's one of my favorite features of Java. Anyway, given all the...
on Oct 6, 2003
I received an email today asking about my use of the glass pane. It seems this fellow wants to handle right clicks on any component in each screen. A logical request. In most cases your right clicks are not limited to a single component, yet to receive the events required to show popups you have to add a listener to each component! Not enjoyable. To get around this we can use a glass pane....
on Oct 3, 2003

Business

Blarg #1: Why are JSPs still relevant? You seem like the perfect guy to ask. Let me explain the question; I'm in projects that run for a very long time, we have to maintain them and add features for at least a year, but probably longer. Having bare JSPs (or even really nice tagged ones) makes this hard to maintain and keep bug-free for a very simple reason; The application programmer has to do...
on Oct 9, 2003
Is Microsoft ready to move onto the 'extinguish' phase with the Web browser? Microsoft is renowned for its "embrace, extend, extingish" strategy which involves enthusiastically embracing and championing a new standard, as a way to become the market leader in that standard, then extending that standard with proprietary technology that lets Microsoft lock in customers and lock out the...
on Oct 9, 2003
There's been a lot of talk lately about how Tiger (J2SE 1.5) is going to make Java easier to develop with, bringing it to the masses (or as Sun call it, to the "corporate developers"). I have no doubt that this promise *will* be fullfilled. My question is: *when* will that happen? I'm not even talking about Tiger's release schedule here - although I'm also afraid it's is a little bit late...
on Oct 5, 2003
One valuable capability of open standards is to let customers decouple application decisions from infrastructure choices. I recently spoke at a technology conference as a part of a panel, and one question from the audience was about which open standards were most important. My response was that there are many important open standards, but that one crucial capability that customers are looking...
on Sep 30, 2003
I commented recently that, while we can each take steps to prevent virus and worm attacks on our computer systems, the biggest threat we actually face is the fact that we have a computer monoculture. Most of the world’s computers run Microsoft’s operating systems, thus most of the world’s computers are vulnerable to the same viruses and worms at the same time. The only way to stop this is to...
on Sep 26, 2003

J2EE

Blogging, the shameless method of displaying ones opinions on the net. It makes a person feel important, authoritative, as if the whole world is taking the time to read what they write. I don't like blogs. I fail to see them as much more than another time-leaching distraction on the web. Sure, sometimes you will find a gem or two, but overall it is just another quick information fix for us net...
on Oct 8, 2003
File access has always been a controversial activity within EJB-based applications because of the restrictions placed upon bean providers by the EJB specification. The part of the specification relevant here is under the section entitled Programming Restrictions, and it states the following about accessing the filing system. An enterprise bean must not use the java.io package to attempt to...
on Oct 8, 2003
Matt is looking for a way to test tag libraries and rather than write a lengthy comment, I thought I'd follow it up here. In the first part of his post, Matt says, ... I've looked briefly at TagUnit, but aren't you just writing JSPs (with custom tags) to test JSPs? In answer to this question, yes, you're exactly rght in saying that you're just writing JSPs. This is the essence of TagUnit, and...
on Oct 7, 2003
While Matt was talking about the Tomcat Service Manager, coincidentally, I was trying to install Tomcat 4 as a service on a Windows 2000 machine yesterday. For various reasons, I didn't want to install Tomcat via the .exe and therefore had to hunt around for the command line that installs the NT service. For (my) future reference, here it is, split over several lines for readability. set...
on Sep 26, 2003

Web Services and XML

Phil Howard of Bloor Research presents anargument I've heard more than once recently: "The reason why there is this trend away from pure XML storage is because advanced XML capabilities are being introduced by all the leading relational vendors." As the developers of Object Oriented DBMS discovered, he says, "the truth is that (like it or not) the market will make do with what the relational...
on Oct 4, 2003

Deployment

A colleague of mine just pointed out that in Richard Monson-Heafel’s EJB book (3rd edition) configurations like Stateless Session Bean (SLSB) -> Stateful Session Bean (SFSB) are considered meaningless. I understand that any EJB book cannot deal with all possible scenarios otherwise you need a truck to take the book home but I find it too interesting not to talk about. Luckily I can discuss in my...
on Oct 2, 2003
Finally I found time for a technical log here at Java.net. This time I want to discuss a shortcoming of the EJB specification and how they can be fixed to make the life of EJB developers and application server administrators easier and the deployed applications more robust. Originally the EJB specification assumed that the applications are deployed at startup of the application server and the...
on Sep 30, 2003

Tools

Dear John…er...I mean Debugger: We’ve had a really good time together over the past 20 years. There’s never been just one of you of course. My debuggers have changed languages many times. First, it was Pascal, then C, then C++, and now, naturally, Java. But throughout our relationship, your purpose in my life has always remained the same. You helped me weed out those nasty bugs and make my code...
on Oct 1, 2003

Performance

The September issue of the Java Performance Newsletter was published. Here is the content list. Timers and audio performance How do you synchronize audio and video frames? What is Java's current capability for recording audio samples? Why is clock skew important to audio recording? In this article Scot Mcphee describes what you need to know about timers for recording audio samples from Java. All...
on Oct 1, 2003

Patterns

Joel Spolsky ("Joel on Software") built his company offices designed for actual programmers and their teams. A radical notion, really. Here's one sample: Put lots of outlets in each office at desk height. No reason to be crawling on the floor with your butt in the air as an invitation to anyone passing by. Also some cool ideas about floor plans to increase everyone's light, etc. Okay, his...
on Sep 28, 2003

Swing

It's Friday so I thought I'd do another Swing hack: When I'm doing really complicated Swing layouts I often have trouble figuring out which component on screen matches the one in my code, especially if there are custom widgets or subclasses that look the same as normal ones (like formatted text fields) or that don't have easy to see borders. To assist in debugging these I created a component...
on Sep 26, 2003