Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Oracle Service Bus 11g Development Cookbook
Oracle Service Bus 11g Development Cookbook

Oracle Service Bus 11g Development Cookbook:

eBook
€27.98 €39.99
Paperback
€48.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Oracle Service Bus 11g Development Cookbook

Chapter 2. Working Efficiently with OSB Artifacts in Eclipse OEPE

In this chapter, we will cover:

  • Setting up an OSB project to work with JCA adapters

  • Using context menu to add nodes and actions to message flow

  • Moving nodes/actions in Eclipse OEPE by drag-and-drop

  • Copying nodes/actions in Eclipse OEPE from one place to another

  • Moving artifacts inside the same OSB project

  • Copying artifacts from one project into another

  • Debugging OSB services through Eclipse OEPE

Introduction


In this chapter, we present different recipes for making the daily work with the Oracle Service Bus (OSB) more efficient. The Eclipse OEPE has some good-to-know features, which supports the creation and changing/refactoring of the message flow of a proxy service as well as the refactoring of the project structure.

We will also show how to set up an OSB project so that the JCA adapters known from the Oracle SOA Suite can be efficiently used within the OSB.

Also in this chapter, we will cover how to debug a proxy service using the graphical debugger built into the Eclipse OEPE development environment and we will see how to reuse functionality through private proxy services.

Setting up an OSB project to work with JCA adapters


Since Oracle Service Bus 11g, the JCA adapter's framework is available at runtime, but the definition of the adapters through the wizards is only available in JDeveloper and not in Eclipse OEPE. To be able to use the adapters, JDeveloper with the SOA Suite extension installed needs to be available.

This recipe will show the basis for how to use the JCA adapters together with an OSB project. The idea is to avoid having to copy metadata from one place to the other by nesting the JDeveloper project inside the OSB project. This approach will be used by all other recipes working with the JCA adapters, such as the File, DB and AQ adapter recipes.

Getting ready

In order to use this recipe, both a working Eclipse and JDeveloper IDE needs to be available. In JDeveloper, you also need to install the SOA Suite extension.

How to do it...

First we create an empty OSB project with the correct folder structure. In Eclipse OEPE, perform the following steps...

Using context menu to add nodes and actions to message flow


So far we have used the drag-and-drop feature for adding nodes and actions to the message flow of a proxy service. However, there is also a more developer-friendly approach, where we don't have to know where in the palette a given item is and especially which items are allowed in a given context.

Getting ready

You can import the OSB project containing the base setup for this recipe into Eclipse OEPE from \chapter2\getting-ready\using-context-menu-to-add-nodes-actions.

How to do it...

Navigate to the Message Flow tab and perform the following steps:

  1. In the message flow, right-click on any element, for example, on the Default branch of the operational branch node.

  2. In the given context, Insert Into and Insert After are possible.

  3. Select Insert Into and then the element to be added. In the given context, the Default handler, only a Conditional Branch, an Operational Branch, a Pipeline Pair, or a Route are valid and therefore the context menu...

Moving nodes/actions in Eclipse OEPE by drag-and-drop


This recipe will just present a simple approach for doing refactoring of nodes and actions within a single message flow. It uses the drag-and-drop functionality of the Eclipse OEPE to move around the items on the graphical representation of the message flow.

Getting ready

You can import the OSB project containing the base setup for this recipe into Eclipse OEPE from \chapter2\getting-ready\moving-nodes\actions-by-drag-and-drop.

How to do it...

If an existing message flow needs to be refactored and some nodes or actions need to be moved around, the Eclipse OEPE provides us with the drag-and-drop functionality, and a simple way to achieve this. For example to move a Pipeline Pair node from one place to another, perform the following actions in Eclipse OEPE:

  1. Open the CustomerManagement proxy service and navigate to the Message Flow tab.

  2. Select the node to move, for example, the PipelinePair node in the FindCustomer branch.

  3. Drag the selected node...

Copying nodes/actions from one place to another


This recipe will just present a simple approach for doing refactoring of nodes and actions. It uses the copy/paste functionality of the Eclipse OEPE to copy a node/action from one place to another.

Getting ready

You can import the OSB project containing the base set up for this recipe into Eclipse OEPE from \chapter2\getting-ready\copying-nodes-actions.

How to do it...

Often when creating a new message flow, some node/actions are very similar. Instead of creating all of them from scratch, there is a way to copy them in Eclipse OEPE. To duplicate a PipelinePair node, perform the following steps:

  1. Open the CustomerManagement proxy service and navigate to the Message Flow tab.

  2. Right-click on the node/action to copy, for example, the PipelinePair node in the FindCustomer branch and select Copy.

  3. Right-click on the PipelinePair node and select Paste.

  4. The PipelinePair has been duplicated under the new name PipelinePair1.

  5. The whole PipelinePair node including...

Moving artifacts inside the same OSB project


This recipe will show how to refactor the structure of an OSB project inside Eclipse OEPE. Simply use the drag-and-drop functionality to move an artifact from one place to another and Eclipse OEPE will make sure that all internal links are updated accordingly.

We will use a simple OSB project with one proxy service calling another proxy service:

Both proxy services implement the same WSDL interface. We will show how the proxy services can be refactored so that the private proxy service is located in its own folder. In the second step, we will also move the WSDL file into another folder.

Getting ready

Import the base OSB project for this recipe from here: \chapter-2\getting-ready\moving-artifacts-inside-osb-project.

How to do it...

First let's move the proxy service CustomerManagementLocal into a local folder located inside the proxy folder. In Eclipse OEPE, perform the following steps:

  1. Create a new folder inside the proxy folder by right-clicking on...

Copying artifacts from one project into another


This recipe will show how to copy artifacts from one OSB project into another OSB project. This is useful for duplicating artifacts in order to reuse them.

We will use the same project as in the previous recipe, with one proxy service calling another proxy service.

Getting ready

Import the base OSB project for this recipe from here: \chapter-2\getting-ready\copying-artifacts-from-project-to-other.

How to do it...

Let's see how we can copy the proxy, wsdl and xsd artifacts into another OSB project. For that we first create a new OSB project in the same OSB configuration and then copy the artifacts. In Eclipse OEPE, perform the following steps:

  1. Create a new OSB project and name it copy-of-artifacts.

  2. Select the proxy, wsdl, and xsd folder with a multiselect in the copying-artifacts-from-project-to-other project, right-click and select Copy.

  3. Right-click on the copy-of-artifacts project and select Paste.

  4. The artifacts are copied into the new OSB project...

Debugging services through Eclipse OEPE


We have already seen in the Testing the proxy service through the OSB console recipe that the OSB provides an Invocation Trace when executing an OSB service through the test console. The Invocation Trace is one possible solution for debugging if something is not working as expected. But its use is limited to the test console.

This recipe will show a more developer-friendly way for debugging. We will show how to use the visual debugger available with the Eclipse OEPE.

Getting ready

Make sure to have the current state of the basic-osb-service project from Chapter 1, Creating a Basic OSB Service available in Eclipse OEPE. We will use it for this recipe. If necessary, it can be imported from here: \chapter-1\solution\with-transformation-proxy-service-created.

For this recipe, we also have to make sure that the OSB server runs in debug mode. The status of a server in the Servers tab in the Eclipse OEPE indicates in which mode the server is started. A value...

Left arrow icon Right arrow icon

Key benefits

  • Develop service and message-oriented solutions on the Oracle Service Bus following best practices using this book and ebook
  • Extend your practical knowledge of building solutions on the Oracle Service Bus
  • Packed with hands-on cookbook recipes, with the complete and finished solution as an OSB and SOA Suite project, made available electronically for download

Description

Oracle Service Bus 11g is a scalable SOA integration platform that delivers an efficient, standards-based infrastructure for high-volume, mission critical SOA environments. It is designed to connect, mediate, and manage interactions between heterogeneous services, legacy applications, packaged solutions and multiple Enterprise Service Bus (ESB) instances across an enterprise-wide service network. Oracle Service Bus is a core component in the Oracle SOA Suite as a backbone for SOA messaging. This practical cookbook shows you how to develop service and message-oriented (integration) solutions on the Oracle Service Bus 11g. Packed with over 80 task-based and immediately reusable recipes, this book starts by showing you how to create a basic OSB service and work efficiently and effectively with OSB. The book then dives into topics such as messaging with JMS transport, using EJB and JEJB transport, HTTP transport and Poller transports, communicating with the database, communicating with SOA Suite and Reliable Message Processing amongst others. The last two chapters discuss how to achieve message and transport-level security on the OSB.

Who is this book for?

If you are an intermediate SOA developer who is using Oracle Service Bus to develop service and message-orientated solutions on the Oracle Service Bus, then this book is for you. This book assumes that you have a working knowledge of fundamental SOA concepts and Oracle Service Bus.

What you will learn

  • Create a simple service on the OSB
  • Work efficiently with the Eclipse OEPE
  • Send and consume messages through the JMS transport, covering both topics and queues
  • Learn how to use the HTTP transport to work in a RESTFul way, both from the consumer and provider side
  • Use the Email transport to send and receive emails and process an attachment
  • Use the JCA adapter framework with OSB in order to support communication with a database
  • Use the SB transport to communicate with the SOA Suite
  • Implement reliable communication with the OSB
  • Includes tips and tricks for implementing the message processing in the message flow of a proxy service
  • Learn how to secure OSB services through OWSM.

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 24, 2012
Length: 522 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684453
Vendor :
Oracle
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jan 24, 2012
Length: 522 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684453
Vendor :
Oracle
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 168.97
Oracle BPM Suite 11g Developer's cookbook
€53.99
Oracle SOA Suite 11g R1 Developer's Guide
€65.99
Oracle Service Bus 11g Development Cookbook
€48.99
Total 168.97 Stars icon

Table of Contents

12 Chapters
Creating a basic OSB service Chevron down icon Chevron up icon
Working Efficiently with OSB Artifacts in Eclipse OEPE Chevron down icon Chevron up icon
Messaging with JMS Transport Chevron down icon Chevron up icon
Using EJB and JEJB transport Chevron down icon Chevron up icon
Using HTTP Transport Chevron down icon Chevron up icon
Using File and Email Transports Chevron down icon Chevron up icon
Communicating with the Database Chevron down icon Chevron up icon
Communicating with SOA Suite Chevron down icon Chevron up icon
Communication, Flow Control, and Message Processing Chevron down icon Chevron up icon
Reliable Communication with the OSB Chevron down icon Chevron up icon
Handling Message-level Security Requirements Chevron down icon Chevron up icon
Handling Transport-level Security Requirements Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(9 Ratings)
5 star 66.7%
4 star 11.1%
3 star 11.1%
2 star 11.1%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




NAGA Feb 07, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I bought this buy basically to setup and install OSB. It saved me lot of time in completing the installation. The step-by-step instructions to explore the functionalities and features supported by OSB software is pretty clear.
Amazon Verified review Amazon
Carlos E. Figueredo Jan 19, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book.
Amazon Verified review Amazon
Marty May 27, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book covers the most often used scenarios of OSB use. Each scenario is described on concrete example step by step, with lots of screenshots. After the example then follows an explanation of principles how the things are working and additional tips and explanations of similar or wider areas of use.With the book there is an archive with all Eclipse projects and other resources required in the exercises. There is also available a solution project for each exercise.You will relatively often encounter some bugs in the detailed step-by-step descriptions. However I welcome these bugs since they force you to think about the exercise, experiment and understand the stuff a lot more deeper.It has to be a lot of work and time to put together such a book and I am grateful to the authors.
Amazon Verified review Amazon
Oracle Specialists Aug 07, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Oracle Service Bus 11g Development Cookbook is an expedient resource for Enterprise Service Bus architects and developer who are developing ESB solutions using Oracle Service Bus. Since OEPE (Oracle Enterprise Pack for Eclipse) in an integral part of OSB development, this books offers in depth step by step of building artifacts and resources using OPEP and eventually deployment of resources and artifacts using Oracle Enterprise Pack for Eclipse.The first chapter describes in detail the concepts of Proxy and Business services and deployment and testing of the services using the OSB console. The chapter further discusses operational branching and routing using OSB console.The chapters two through chapter eight elucidate comprehensive step-by-step to creating resources including and various transport mechanisms JMS transport, EJB, File and Email Transports, HTTP transports Database Adapters and Communication with SOA suite.Security is a very integral part of OSB server. The book covers Service Accounts, Service Account Provider for Business and Proxy services security via authentication mechanisms. The book enunciates an in-depth exposure of Transport Level security on OSB and TWO way SSL configuration.
Amazon Verified review Amazon
rindhavi Apr 13, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I started to get my hands on the recently launched Oracle Service Bus 11g Development Cookbook written by most talented people in the FMW space,Guido Schmutz, Edwin Biemond, Jan van Zoggel , Mischa Kölliker and Eric Elzinga.This book covers many real life problems that we encounter in the integration work space using Oracle Service Bus. It also includes SOA suite components a few. I just started reading it and getting interested more. It has detailed many solutions and best practices that we can take up and use in the daily tasks. I sincerely recommend this book those who wanna get into the OSB space. Really nice to have one in your library.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.