Thursday, January 25, 2007

 

Stripes, Effective Exceptions, and Client-Side Derby

O'REILLY NETWORK'S ONJava.com NEWSLETTER
--------------------------------------------------
The Independent Source for Enterprise Java

==================================================================
Inside Port 25: The Open Source Software Lab at Microsoft

Get help and guidance on running Windows, Linux, UNIX or Open
Source Software in a mixed environment. In partnership with O’Reilly,
Inside Port 25 is an objective perspective on the research, insight, and
bloggers of the Open Source Software Lab at Microsoft.

Learn more at:
http://www.oreilly.com/go/onlamp-port25

==================================================================
Greetings...

Has the freedom to configure become the burden of configuration? That's
the attitude of a lot of popular frameworks nowadays, many of which don't
run on Java. But since it's decoupling that got us into this mess, let's
decouple the language from the framework--Java and EE are two different
things! Ruby on Rails isn't the only way to achieve high developer
productivity with an approach of "convention over configuration"--wiring
up sensible defaults and using those unless the developer has a good
reason to do otherwise. This week's ONJava looks at one such Java
framework, Stripes.

Stripes isn't the first Java framework to apply an MVC approach to Java
webapp development, but as Mark Eagle suggests in "Java Web Development
with Stripes," it's one that you may want to choose in order to maximize
your productivity. "One of the main differences between Stripes and other
action-based frameworks is the absence of external configuration files. As
we will see, Stripes uses annotations and convention over configuration to
allow more development and less clutter."

http://www.onjava.com/pub/a/onjava/2007/01/24/java-web-development-with-stripes.html

In an article from dev2dev, Barry Ruzek makes a case for "Effective Java
Exceptions," and by that, he means the proper use of checked exceptions.
"Some have argued that checked exceptions in the Java language are an
experiment that failed. This article argues that the fault does not lie
with the Java model, but with Java library designers who failed to
acknowledge the two basic causes of method failure. It advocates a way of
thinking about the nature of exceptional conditions and describes design
patterns that will help your design. Finally, it discusses exception
handling as a crosscutting concern in the Aspect Oriented Programming
model. Java exceptions are a great benefit when they are used correctly.
This article will help you do that."

http://dev2dev.bea.com/pub/a/2006/11/effective-exceptions.html

You may have seen David Van Couvering at one of several recent conferences
where he makes the case for using an embedded client-side Derby database
to provide off-line functionality for your webapp users. He has details
in the java.net article "Synchronizing a Web Client Database:
LocalCalendar and Google Calendar." "To build a disconnected or offline
web application, there are three main requirements: local storage,
synchronization, and your application logic needs to be available offline.
The concepts around synchronization are fairly straightforward once you
understand them. Building and delivering this kind of application is
possible and achievable, and can provide great value to your customers."

http://today.java.net/pub/a/today/2007/01/16/synchronizing-web-client-database.html

Recent O'Reilly Network weblogs of interest to Java developers:

Paul Browne - Java and those pesky Google APIs
http://www.oreillynet.com/onjava/blog/2007/01/java_and_those_pesky_google_ap.html

Shashank Tiwari - 1 in every 10 Java developers is learning Flex?
http://www.oreillynet.com/onjava/blog/2007/01/1_in_every_10_java_developer_i.html

Shashank Tiwari - Google Spreadsheets - for the enterprise?
http://www.oreillynet.com/onjava/blog/2007/01/google_spreadsheets_for_the_en.html

Robert Cooper - Sun Tech Days Atlanta
http://www.oreillynet.com/onjava/blog/2007/01/sun_tech_days_atlanta.html

Hari K. Gottipati - Is Java more efficient than Ajax for advanced web apps?
http://www.oreillynet.com/onjava/blog/2007/01/is_java_more_efficient_than_aj.html

Steve Anglin - CodeMash Conference continues...
http://www.oreillynet.com/onjava/blog/2007/01/codemash_conference_continues.html

Timothy M. O'Brien - Patterns: Powerful and Dangerous
http://www.oreillynet.com/onjava/blog/2007/01/ask_onjava_patterns_are_you_a_1.html

Check out more O'Reilly Network Java weblogs at:
<http://www.oreillynet.com/onjava/blog/>

Please join us again next week.

Chris Adamson, Editor
ONJava.com

Mike Hendrickson
General Manager, The O'Reilly Network

==================================================================
Secure. Fast. Affordable. GoToMeeting Web Conferencing.

Get all three with GoToMeeting™, the Web-based service with
screen-sharing technology so multiple PC users can meet online
anytime. Present, demo software and train from anywhere with
Internet access. Plus, you can hold unlimited meetings for one
flat rate.

Get a free 30-day trial now.
http://www.oreilly.com/go/go2mtg_javsecure

==================================================================

*** Java News and Weblogs ***

java.net Weblogs
http://weblogs.java.net/

O'Reilly Network Java Weblogs
http://www.oreillynet.com/pub/q/weblog_s?x-subject=3

Other Java News (channel -- LANG: JAVA)
http://www.oreillynet.com/meerkat/index.php

Java Cookbook Recipe of the Day
http://www.onjava.com/onjava/javacook/solution.csp?day=1

Java Events
http://www.onjava.com/onjava/events/

==================================================================

*** Other Related O'Reilly Network sites ***

O'Reilly Network
http://www.oreillynet.com

XML.com
http://xml.com/

ONLamp.com
http://onlamp.com

O'Reilly Media
http://www.oreilly.com/

O'Reilly Java
http://java.oreilly.com/

***

ONJava.com Affiliates

Servlets.com
http://www.servlets.com/

JDOM.org
http://www.jdom.org/

------------------------------------------------------------------
Visit our Sponsored Developer Resource Pages and learn about cool
stuff from our sponsors!

Downloads - Free Training - Webinars - Updates

Inside Lightroom: http://digitalmedia.oreilly.com/lightroom/

------------------------------------------------------------------
Interested in sponsoring the ONJava.com newsletter? Please email us
at advertising@oreilly.com for rate and availability information.
Thank you!
------------------------------------------------------------------
To change your newsletter subscription options, please visit
http://www.oreillynet.com/cs/nl/home

For assistance, email help@oreillynet.com

O'Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
(707) 827-7000
------------------------------------------------------------------


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?