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
$65.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781849684446
Vendor :
Oracle
Category :
Languages :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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
$279.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 $ 224.97
Oracle BPM Suite 11g Developer's cookbook
$70.99
Oracle SOA Suite 11g R1 Developer's Guide
$87.99
Oracle Service Bus 11g Development Cookbook
$65.99
Total $ 224.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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.