Thursday, April 06, 2006
AJAX concurrency and HTTP headers
O'REILLY NETWORK'S ONJava.com NEWSLETTER
--------------------------------------------------
The Independent Source for Enterprise Java
==================================================================
Open with Confidence.
Join the Affordable Solutions for the Open Enterprise Web seminar series
April 11 and 12, hosted by Novell, Dell, JBoss and MySQL.
Running a successful small business and a cost-efficient edge
infrastructure at the same time isn't easy. But with the right network
edge computing solution, it is possible. Discover Open Enterprise
Solutions at an SMB price that only Dell can offer. Register today at:
http://www.oreilly.com/go/novell_jav
==================================================================
Greetings...
I bet I won't be going out on a limb to assume that most readers of this
newsletter are not exclusively Java coders. Oh, you may think you are,
but then again, do you use SQL? Do you use HTML? Do you have a new AJAX
project that's going to drag you back into JavaScript? Chances are that
while Java may be your procedural/OO programming language of choice,
that's not enough to do everything you're responsible for. This week,
we're featuring some of these other common things that Java developers are
often responsible for, with an eye to how you can use your Java expertise
to excel at them.
Java has always supported concurrency among threads, starting with the
synchronized keyword and the wait() and notify() methods of the Object
class. J2SE 5.0's addition of an excellent concurrency package is just
icing on the cake. But what if you didn't have any of these tools, and
you needed to prevent concurrent access to shared data models? Well, you
might well be writing an AJAX application, and discover that JavaScript is
perfectly happy to let two threads access the DOM at the same time. In
"Mutual Exclusion for AJAX," Bruce Wallace introduces a set of techniques
that allow you to set up critical sections in your AJAX code and defend
them against use by multiple simultaneous threads.
<http://www.onjava.com/pub/a/onjava/2006/04/05/ajax-mutual-exclusion.html>
You may know web services, but how much do you know about the underlying
HTTP standard? With a little tweaking, it's possible to speed up your web
service not through snazzy programming on the server side, but by letting
HTTP help you out with persistent connections, caching, compression,
authentication, and more. Joe Gregorio's XML.com "Restful Web" entry,
"httplib2: HTTP Persistence and Authentication," is nominally about a
Python library, but this installment is almost entirely about HTTP headers
that are easily manipulated from Java.
<http://www.xml.com/pub/a/2006/03/29/httplib2-http-persistence-and-authentication.html>
In the second installment of a series from dev2dev, Emmanuel Proulx
demonstrates a standards-compliant instant messaging system in "An
Introduction to SIP, Part 2: SIP Servlets." He writes, "SIP is an
extremely promising telecommunication standard, and the SIP Servlet API is
a great way to easily and rapidly develop server-side SIP applications."
<http://dev2dev.bea.com/pub/a/2006/02/sip-servlet.html>
In this week's feature article from java.net, John Ferguson Smart puts
agile processes to a different use in "Agile Legacies: Using Iterative
Methods to Import Legacy Data." John writes, "Importing legacy data is an
important part of most IT projects. It should not be relegated to the end
of the project, just before the application goes into production. Instead,
the process of analyzing and importing legacy data should be fully
integrated into the project iteration cycles. Integrating legacy data
early and often will improve the development process, product quality, and
customer satisfaction."
<http://today.java.net/pub/a/today/2006/03/02/agile-legacy-data-import.html>
Recent O'Reilly Network weblogs of interest to Java developers:
Timothy M. O'Brien - Maven Registry Continues to Evolve
<http://www.oreillynet.com/onjava/blog/2006/04/maven_registry_continues_to_ev.html>
Bill Siggelkow - Recursive Directory List with Ruby
<http://www.oreillynet.com/onjava/blog/2006/03/recursive_directory_list_with.html>
Steve Anglin - TheServerSide Java Symposium: A Recap
<http://www.oreillynet.com/onjava/blog/2006/03/theserverside_java_symposium_a.html>
Timothy M. O'Brien - Dead Time (...code, compile, wait, wait, wait, test, repeat)
<http://www.oreillynet.com/onjava/blog/2006/03/dead_time_code_compile_wait_wa.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
==================================================================
Your Skills Are in Demand. More Skills. More Demand.
Choose from 45 webcasts organized by track--JSP, PHP, and ColdFusion. Each
track has been designed to take advantage of your existing Web development
skills and includes insightful content contributed by Dr. Dobb's and
O'Reilly.
http://www.oreilly.com/go/learn2asp_jav
==================================================================
*** 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/
==================================================================
BUY 2 BOOKS DIRECT, GET 1 FREE
Take advantage of O'Reilly's "Buy 2 Books, Get 1 Free" offer by cutting
and pasting code "OPC10" into our shopping cart. Any orders over $29.95
also qualify for free shipping in the US.
http://www.oreilly.com/store/?CMP=NLC-0Z7E11150382&ATT=java2
==================================================================
*** 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
------------------------------------------------------------------