Skip to main content

Cay Horstmann

Cay Horstmann is author of Core Java (Sun Microsystems Press 1996-2009), Enterprise Java for Elvis (Sun Microsystems Press, to appear), and co-author of Core JSF (Sun Microsystems Press 2004-2009) Cay is professor of computer science at San Jose State University. He is a computer science series editor at Prentice-Hall and a frequent speaker at computer industry conferences. For four years, Cay was VP and CTO of an Internet startup that went from 3 people in a tiny office to a public company.

 

cayhorstmann's blog

Are you using static import?

Posted by cayhorstmann on August 6, 2009 at 10:00 PM PDT

I am rewriting a Java book for beginners, and it seems to make so much sense
to use

import static java.lang.System.out;

public class Greeting
{
   public static void main(String[] args)
   {
      out.println("Hello, World!");
   }
}

static.jpg

Say Sayonara to sPAL!

Posted by cayhorstmann on July 22, 2009 at 8:21 AM PDT

When I teach my JSF crash course to my software engineering students,
everyone nods, works through the lab, and I don't hear any JSF issues from them
for a couple of weeks. Then they run into sPAL.

Add an XSD file to Eclipse and Eliminate Those Pesky XML Warnings

Posted by cayhorstmann on July 21, 2009 at 8:27 AM PDT

If you work with Eclipse and JSF 2, you too may be annoyed at the little
warning-icon.png
that shows up next
to all your faces-config.xml files (even those that are blessedly
empty).

Are Web Services the New CORBA?

Posted by cayhorstmann on July 8, 2009 at 8:56 AM PDT

I am updating the “External Services” chapter in href="http://corejsf.com">Core JSF. There is lots of new and interesting
stuff: How to use JPA, stateless session beans, and WebBeans. I ditched the
LDAP sections (for which I had received very few queries, even though the
examples are notoriously hard to set up).

WebBeans in Glassfish v3

Posted by cayhorstmann on July 5, 2009 at 9:39 PM PDT

As I am updating my share of chapters in the Core JavaServer Faces book
(with the hard parts fortunately being tackled by my coauthor, David Geary), I
started playing with WebBeans, erm, Java Contexts
and Dependency Injection.
I'll keep calling it WebBeans—the alternative JavaCandi is more than I
can take.

A First Look at NetBeans 6.7

Posted by cayhorstmann on June 29, 2009 at 8:54 AM PDT

A few days after Eclipse Galileo, Netbeans released its latest offering,
Netbeans 6.7. Here is a first look, as always from my entirely biased
perspective.

out-of-box.jpg

Upgrading to Eclipse Galileo

Posted by cayhorstmann on June 26, 2009 at 9:54 AM PDT

I just installed Eclipse 3.5 (Galileo)—it seemed a more attractive
thing to do than actually getting my work done. Fortunately, I only need three
Eclipse plugins right now. Here is how they fared with Galileo.

JSF 2.0 Refcard available

Posted by cayhorstmann on June 16, 2009 at 12:03 PM PDT




jsf2-refcard

jsf2-refcard.png

My Department is Slashdotted

Posted by cayhorstmann on June 15, 2009 at 9:12 PM PDT

I teach computer science at San Jose State University. My department just
ended up on href="http://news.slashdot.org/story/09/06/13/123211/Student-Who-Released-Code-From-Assignments-Accused-of-Cheating">Slashdot.
One of my colleagues, Dr.

Java One 2009 Day 4

Posted by cayhorstmann on June 5, 2009 at 9:03 PM PDT

The Toy Show

One of my favorite parts of Java One is the Friday morning “toy show” where James Gosling presents a random mixture of cool and inspirational projects. Of course, all these involve Java in some way.