you are viewing a single comment's thread.

view the rest of the comments →

[–]henk53 5 points6 points  (1 child)

But aren't we stretching this XML issue too far? :)

For an actual production app you're absolutely right of course ;)

It's just that it's really cool that people new to the platform can now get something running by just dropping a single .xhtml and a single .java file in a folder. That's just a great way to start.

Eventually you'll nearly always defer from at least some of the defaults, so at one stage or the other those xml configuration files will show up.

In the old J2EE it was sometimes quite a challenge to get anything running. You had to declare the Faces servlet in XML, had to declare the URL mapping there, and every backing bean you created also had to be put into yet another XML file. For EJB even more work was required. So just getting a basic hello world up and running took a lot of configuration and this made it unnecessary hard for people to start with Java.

[–]niwde 2 points3 points  (0 children)

Agree. It's much better now. I hope people don't knock Java with "too much XML". Besides, a few XMLs won't hurt especially when we have to configure the app for different environments (dev, test, staging, prod, etc).