Transaction strategies: The High Performance strategy

See the original posting on IBM developerWorks – Java

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.

Java Web services: Granular use of WS-Security

See the original posting on IBM developerWorks – Java

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.

Implementing composite keys with JPA and Hibernate

See the original posting on IBM developerWorks – Java

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.

Java Web services: JAXB and JAX-WS in Axis2

See the original posting on IBM developerWorks – Java

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.

Create stand-alone Web services applications with Eclipse and Java SE 6, Part 2: The web service client application

See the original posting on IBM developerWorks – Java

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.

Dynamic, typesafe queries in JPA 2.0

See the original posting on IBM developerWorks – Java

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
API.

developerWorks Java technology: 10 years and counting

See the original posting on IBM developerWorks – Java

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.

Java web services: Introducing CXF

See the original posting on IBM developerWorks – Java

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.

Java Web services: Metro vs. Axis2 performance

See the original posting on IBM developerWorks – Java

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 Java XML Validation API

See the original posting on IBM developerWorks – Java

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.

Java web services: WS-Security with CXF

See the original posting on IBM developerWorks – Java

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.

JSF 2 fu: After-the-fact Ajax composite components

See the original posting on IBM developerWorks – Java

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.

1 2 3 4 9