Book Image

Oracle SOA Suite 11g Developer's Cookbook

By : Antony Reynolds, Matt Wright
Book Image

Oracle SOA Suite 11g Developer's Cookbook

By: Antony Reynolds, Matt Wright

Overview of this book

<p>As part of Oracle Fusion Middleware, the components of Oracle SOA Suite enable you to build, deploy and manage Service-Oriented Architectures (SOA), and can be used as the glue to integrate your applications whilst moving your enterprise towards a service oriented future. The recipes in "Oracle SOA Suite 11g Developer's Cookbook" will provide you with a solid foundation for your SOA Suite implementation ensuring its efficiency and reliability.<br /><br />Whether you're using SOA Suite as an integration tool or as the foundation of your Service Oriented Architecture, it is important to have a reliable implementation. "Oracle SOA Suite 11g Developer's Cookbook" will ensure you have the knowledge at your disposal to achieve that, through numerous tips and tricks for extending and enhancing your applications. <br /><br />"Oracle SOA Suite 11g Developer's Cookbook" equips you with invaluable information about SOA Suite development which can usually only be gained through bitter experience. The recipes in this book distill real world experience into an easily applicable form.<br /><br />Throughout the book you'll encounter high level issues, such as building a reliable SOA Suite cluster, and detailed development problems such as avoiding errors in BPEL assignment statements. Along the way you'll also learn about configuring identity providers and managing transaction boundaries.<br /><br />The recipes in this Cookbook will prove crucial for implementing your SOA Suite solutions.</p>
Table of Contents (21 chapters)
Oracle SOA Suite 11 Developer's Cookbook
Credits
About the Authors
Contributors
About the Reviewer
www.PacktPub.com
Preface
Index

Ignoring a Java property


Often the Java interface we are using will have convenience methods that appear to be additional properties but are actually just a simpler way of accessing another property. An example is shown as follows:

public class QuoteRequest implements Serializable {
  ...
  private String[] products;
  ...
  public void setProducts(String[] products) {
    this.products = products;
  }
  public String[] getProducts() {
    return products;
  }
  public String getProduct(int i) {
    ...
  }
  public String getProduct() {
    return getProduct(0);
  }
  public void setProduct(String product) {
    products = new String[1];
    products[0] = product;
    return;
  }
  ...
}

In this example, the getProduct and setProduct methods are just simplified interfaces to the getProducts and setProducts methods in the case where there is only one product required. We would not want to generate an XML element for both the product and the products properties of this bean, so in this recipe...