JavaServer Faces (JSF) 2 Expert Group member David Geary wraps up his three-part series on JSF 2's new features. Find out how to use the framework's new event model and built-in support for Ajax to make your reusable components all the more powerful.
In this final installment, Transaction strategies series author Mark Richards describes how to implement a transaction strategy in the Java platform for high-performance applications. Your application can maintain fast processing times while still supporting some degree of data integrity and consistency — but you need to be aware of the trade-offs involved.
WS-Security for SOAP Web services doesn't have to be an all-or-nothing proposition. By configuring WS-Security at the operation or message level, you can apply an appropriate degree of protection to every exchange, reducing or eliminating the WS-Security overhead for operations that don't need full protection. Dennis Sosnoski continues his Java Web services series with a look at granular WS-Security in Web Services Description Language (WSDL) using Apache Axis2 and Rampart.
In this article, learn about Apache Lucene, the high-performance,
full-featured text search-engine library. Explore the Lucene architecture and
its core APIs. Learn to use Lucene for cross-platform full-text searching,
indexing, displaying results, and extending a search.
Nowadays, with the widespread use and deployment of Object-Relational Mapping (ORM) tools, you don't generally have to think too hard about such arcane issues as composite keys. Normally, the choice of key design can be a simple integer, and this can be left with confidence to the tooling. Occasionally, you come across a situation where a composite key is required, and you need a strategy for this. This tip shows you how to implement composite keys with JPA and Hibernate.
Apache Axis2 supports a range of data-binding technologies, including the official Java standard, JAXB 2.x. Axis2 also supports the Java standard for Web service configuration, JAX-WS 2.x, as an alternative to its own custom configuration technique. Dennis Sosnoski continues his Java Web services column series by demonstrating how you can use each of these Java standards with Axis2 and discussing some of the limitations of Axis2's current support for them.
Use the Eclipse Integrated Development Environment (IDE) and Java
Platform, Standard Edition (Java SE) 6 to create a stand-alone Web services
application that can be run from the console. In this tutorial, the second in
the series, continue getting familiar with the Eclipse IDE and its built-in
feature the TCP/IP Monitor. View the network traffic between server and client
applications and then run the applications from the command line.
A query for persistent Java objects is typesafe if a compiler can verify
it for syntactic correctness. Version 2.0 of the Java Persistence API (JPA)
introduces the Criteria API, which brings the power of typesafe queries to
Java applications for the first time and provides a mechanism for constructing
queries dynamically at run time. This article describes how to write dynamic,
typesafe queries using the Criteria API and the closely associated Metamodel
Java developers have a variety of choices when it comes to serializing and deserializing Extensible Markup Language (XML) objects. Simple is one such example, and it offers a number of advantages over its competitors. In this article, explore an introductory overview of how to use Simple within an XML communication system.
Since taking the reins of the Java technology zone, Jenni Aloi has
published nearly 1000 pieces of content and collaborated with writers from
(seemingly) every specialty in Java development. As developerWorks celebrates
its 10th anniversary, she thought it would be nice to give props to those
writers who've made the zone a success.
The Metro Web services stack is based on the reference implementations of the JAXB 2.x and JAX-WS 2.x Java standards but also includes support for a full range of WS-* SOAP extension technologies. This article continues Dennis Sosnoski's Java Web services column series with coverage of WS-Security configuration and usage in Metro.
Elliotte Rusty Harold explores the native idioms, dialects, and accents
of the Java language and community. By following this article's guidance,
C/C++ and other nonnative programmers can blend right in with native Java speakers.
The Metro Web services stack provides the same functionality as the Axis2 stack
but, aside from the optional use of JAXB and JAX-WS in Axis2, uses completely different implementations of the technologies involved. In this article, Dennis Sosnoski continues his Java Web services column series with a performance comparison between the Metro and Axis2 stacks, both with and without WS-Security.
The Apache CXF web services stack supports JAXB 2.x data binding (along
with some alternative data bindings) and JAX-WS 2.x service configuration.
Like the Metro JAXB/JAX-WS alternative discussed in earlier columns, CXF uses
XML files to extend the JAX-WS configuration information. In this article,
Java web services series author Dennis Sosnoski looks into the basics of
working with CXF for client and server development.
Validation reports whether a document adheres to the rules specified by the
schema. Different parsers and tools support different schema languages such as DTDs, the
W3C XML Schema Language, RELAX NG, and Schematron. Java 5(TM) adds a uniform validation
Application Programming Interface (API) that can compare documents to schemas written in
these and other languages. Learn about this XML validation API.
The Apache CXF web services stack supports WS-Security, including using
WS-SecurityPolicy to configure the security handling. CXF is flexible in how
you configure the deployment parameters used at run time to implement the
security handling, supporting both static and dynamic configuration options
for the client side. In this article, Java web services series author Dennis
Sosnoski shows how to use CXF for both a simple UsernameToken WS-Security
example and one using signing and encryption.
JavaServer Faces (JSF) 2 Expert Group member David Geary begins a new article series offering in-depth coverage of JSF 2 technology. In this installment, you'll learn how to integrate JSF 2's composite components with the framework's support for Ajax development.
Apache CXF shares certain underlying components with both Apache Axis2 and Metro but combines the components within an entirely different architecture. Dennis Sosnoski continues his Java web services column series by comparing how the CXF, Metro, and Axis2 stacks perform both with and without WS-Security.
JavaServer Faces (JSF) 2 Expert Group member David Geary continues his article series offering in-depth coverage of JSF 2 technology. In this installment, you'll learn how to let page authors add Ajax to your composite components, taking a close look at a powerful — but entirely undocumented — JSF 2.0 tag. And you'll see how to implement a reusable, general-purpose, Ajax-capable icon component in fewer than 25 lines of XML.
In this JSF 2 fu installment, you'll find out how to combine JSF 2 with Contexts and
Dependency Injection (CDI) to implement an Ajaxified wizard. You'll see JSF's templating and
Ajax in action, and you'll learn how to use CDI's dependency injection and conversation