
Do you actually need an app server? Maybe you can just get by with plain old JDBC. Here is the killer stat which might prove Java EE is a dead end. Nobody implements Java EE 6. There is only open source GlassFish. Ouch.
Java is not dead. But Java Enterprise Edition may very well be. I am glad I did not spend too much time with Java EE.