Thursday, March 23, 2006

 

Spring Configuration and Zero Configuration

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

==================================================================
FREE Cross Training For Web Developers

FREE training webcasts, software, and how to's from Dr. Dobb's, O'Reilly
Media, and Microsoft. Choose from more than 40 webcasts, and see if you're
eligible to receive a FREE copy of Visual Studio Standard (NFR).
Complimentary copies of Visual Studio Standard (NFR) are limited, so act
today! http://www.oreilly.com/go/learn2asp_jav

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

Greetings--

Isn't sharing configuration files with source control great? I think I
was pretty much over this concept the first time I checked out a project
and it created a directory called "C:" on my Mac. And that's just
location. Source control is great for capturing the structure of config
files, but in all likelihood, it's a bad way to attend to the contents,
since the point of a config file is to put different values in for
different situations. So what do you do? Put in dummy data? Write a
heroic shell script or Ant task that tries to fix everything for you?
This week's first article takes a look at this very common problem from
the Spring space, and advocates a solution.

Developer box, integration box, production box. They'll all need the same
Spring configuration files, but with profoundly different values for most,
if not all, of the items to be configured. Merely annoying for
hand-editing name-value pairs, this becomes a real problem if you choose
to vary your bean wiring between deployments. In "Advanced Configuration
of the Spring MVC Framework," Dejan Bosanac shows how to synchronize bean
properties and wirings to get yourself out of this mess.

<http://www.onjava.com/pub/a/onjava/2006/03/22/advanced-spring-configuration.html>

Continuing with an excerpt from "Zero Configuration Networking, The
Definitive Guide," Stuart Cheshire and Daniel H. Steinberg move to the
client side in "Zero Configuration Networking: Using the Java APIs, Part
2." They show how to browse for and resolve services with Java, and how
to register a service with DNS TXT attributes.

<http://www.onjava.com/pub/a/onjava/excerpt/bonjour_ch08/index1.html>

"It sometimes seems like widely popular web-standards innovation halted
around 2000, and the last few years have been a period of very slow
catch-up. Various visions of a new Web, a better Web, have come and gone,
leaving behind useful parts but not yet transforming the Web. Are we on
the edge of the next big thing? It may make sense to look at the last few
big things, comparing their visions with what's happening today." In the
xml.com article "The Next Web?" Simon St. Laurent traces the promises and
progress of various "Next Big Thing" contenders: the XML Web, the Semantic
Web, the Services Web, the Next XHTML, and AJAX.

<http://www.xml.com/pub/a/2006/03/15/next-web-xhtml2-ajax.html>

In a feature article from java.net, Joshua Marinacci looks at "Building
GUIs with SwiXml." "In recent years, many developers have decided that it
is a good practice to separate the GUI layout from event handling and
program logic. This keeps the program logic cleaner and allows the layout
to be maintained separately, often by a different developer. Some have
gone a step further to specify layout in a language other than Java. These
days, the natural choice for any new language is of course XML, and a
quick internet search for 'java xml gui layout' will return many
commercial and open source layout products. One of the best is SwiXml, a
tiny but powerful library that transforms simple XML descriptions into
attractive user interfaces."

<http://today.java.net/pub/a/today/2006/02/21/building-guis-with-swixml.html>

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

Dejan Bosanac: "Apache XML-RPC Adapter for Spring"
<http://www.oreillynet.com/onjava/blog/2006/03/apache_xmlrpc_adapter_for_spri.html>

Robert Cooper: "This Week in Java"
<http://www.oreillynet.com/onjava/blog/2006/03/this_week_in_java.html>

Check out more O'Reilly Network Java weblogs at:
<http://www.oreillynet.com/pub/q/weblog_s?x-subject=3&>

Please join us again next week.

Chris Adamson, Editor
ONJava.com
cadamson@oreilly.com

==================================================================
Free on Safari
Quicken 2006 Missing Manual: Setting Up Your Quicken Environment
http://safari.oreilly.com/0596101279/quickenfstmm-CHP-1

After you install Quicken, you're merely a few steps away from
experiencing the joys of electronic personal finance. Chapter 1 of Quicken
2006 for Starters: The Missing Manual helps you come out of the gate
running by guiding you through launching and setting up Quicken as well as
the intricacies of Quicken preferences.

If you like this chapter, read the whole book (and up to nine others) on
Safari with a free trial subscription:
http://oreillynet.com/safari-trial/

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

*** 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/

==================================================================
O'Reilly Learning Special Offer: Save 25% Now
<http://oreillylearning.com/promotion/>

"I would never, and I mean never, have imagined that a computer learning
course would actually be fun too."
-Kerry Beck, PR Specialist

O'Reilly Learning has an exciting year in store! You're invited to join
thousands of satisfied students worldwide who have discovered just how
much fun it can be to gain skills and experience in programming or system
administration with our unique system. And until March 31st, enjoy 25% off
tuition for our online University of Illinois Certificate courses.

Enroll today and make your daily accomplishment:
<https://oreillylearning.com/enroll/>

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

*** 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/

------------------------------------------------------------------
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?