You are on page 1of 11

24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started

http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 1/11
S A T UR D A Y, J UL Y 2 , 2 0 1 1
OSB Dev using Eclipse - Getting Started
Introduction
I hope that you have installed OSB 11g and created domain.
Now it is the time to make your hands dirty. I will explain to you
how to create a basic http-http flow using eclipse. So why to wait,
open your eclipse and go on!!.
Definitions
Oracle Service Bus Configuration Project - After opening the
eclipse create the osb configuration project which hold
multiple osb projects.
OSB project - holds the actual application which consists of
proxy services and business services.
Proxy Service - which holds the actual flow
implementation. It can perform routing,
transformation,sercurity, monitoring and reporting
Business Service , which acts as an abstract access layer for
the end system component where we configure the
interface. Proxy service calls the end system using business
service. Business services can be of HTTP, JMS, MQ, File ,
FTP etc.
Sample Flow (HTTP-HTTP)
B L O G A R C HI V E
2012 (2)
2011 (4)
July (3)
Weblogic JMS Basics
Getting Started - XQuery Dev
inside OSB Eclipse
OSB Dev using Eclipse -
Getting Started
June (1)
P O P UL A R P O S T S
OSB Dev using Eclipse -
Getting Started
Introduction I hope that
you have installed OSB
11g and created domain.
Now it is the time to make your
hands dirty. I will explain to ...
Getting Started - XQuery
Dev inside OSB Eclipse
Prerequisite Should have
installed OSB Basics
understanding of
middleware technology.
Introduction We can use
XQuery/XSL in OSB t...
Attachment Handling using Oracle
Service Bus (OSB)
1. Introduction Oracle
0

More

Next Blog Create Blog

Sign In
ORAC L E S E RVI C E B US
T HI S I S A B L O G D E D I C A T E D T O O R A C L E S E R V I C E B US R E L A T E D C O NC E P T S WHI C H WI L L B E
HE L P F UL F O R E V E R YO NE T O UND E R S T A ND A ND I M P L E M E NT T HE V A R I O US F E A T UR E S I T
P R O V I D E S .
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 2/11
Open the Eclipse and create Oracle Service Bus Configuration
Project
Right click on the Oracle Service Bus Configuration project and
create a new Oracle Service Bus project
Give some proper name
Right click on the Oracle Service Bus project and create new proxy
service.
Fusion 11g is an
enterprise ready family
of integration products
from Oracle. ...
Oracle Fusion Middleware PPT
This will give an introduction to
Oracle Fusion Middleware and
spots where the Oracle Service Bus
stands in the Oracle Middleware
products. ...
Oracle Service Bus (OSB) Performance
Tuning tips
Once you are comfortable with
developing and deploying
applications in OSB, the next thing
that comes for you will be how fast
yo...
Weblogic JMS Basics
Slide 28 l Introduction
The Java Messaging
Service (JMS) is a Java
Message Oriented
Middleware (MOM) API for sending
messages between t...
F O L L O WE R S
Join this site
with Google Friend Connect
Members (10)
Already a member? Sign in
A B O UT M E
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 3/11
Open the new proxy service and click on the 'Transport' section.
Select the protocol as 'http' and give a proper HTTP access URI.
Click on the 'Message Flow' section on the proxy service and drag a
'pipeline pair' to the message flow.
You can see 'Request pipeline' and 'Response pipeline' inside the
pipeline pair.
Drag a 'stage' into the Request pipeline. Stage is used just to group
different nodes in the flow.
SAJEEV RAMAKRI SHNAN
Like yours, I also wear the hat of
many roles, like son, uncle,
brother,friend,lover,employee,
technologist,guide, instrumentalist
and so one. But I don't know who I
am I.
V I EW MY COMPLETE PROFI LE
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 4/11
Now Right click on the Oracle Service Bus Project and create a new
'business service'
Open the new business service and click on 'Transport' section .
Configure 'http' as protocol and add one proper end system URI.
In the figure given below, it is configured as
http://www.google.com. Instead please configure any tomcat
stub which gives any xml as the output.
Go back to the proxy service. Drag 'Service call out' to the 'stage'.
The service call out is used to initiate a request to the end system
with the help of business service and get back the response.
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 5/11
Click on the service call out and then click on the 'Browse' button
below and select the business service.
Enter the Request variable as 'body' and response variable as
'response'. You can use any name for the response variable. But
for the request variable you should use 'body' as the request xml
resides in the 'body' variable.
Drag a 'replace' node to the response pipeline pair and configure it.
This will copy the response obtained from the downstream to the
body variable so that the response will be returned to the client.
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 6/11
Now the application is ready and it need to be deployed. For that
we have to add the server to the workspace.
Select the appropriate server
Select the domain directory
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 7/11
Finish creating the server and right click on the server created and
select 'Add and Remove' and add your Oracle Service Bus
Configuration Project to the server.
Right click on the 'Server' and click on 'start'. After some time the
server will go to the 'Running' state.
Right click on the server and click on 'publish' so that your
application will be deployed .
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 8/11
Testing the application
Right click on the proxy service and select 'Run As' and select
'Run on Server' . A new window will be opened and paste some xml
and hit run. If there are no errors in the end system stub, you will
get proper output.
Note : Make sure that your managed server is running before
testing the application.
Paste one xml on the 'Payload' section and hit 'Execute'
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 9/11
If your stub is working properly, You can see the proper response.
Conclusion
This topic is just intended to kick start the development. There
are more things ahead. Any way you have taken the first step of
OSB application development. Try to explore more in it.
Queries?
please contact Sajeev Ramakrishnan
@ sajurrk@gmail.com
@ saju_rrk@yahoo.com
POSTED BY SAJEEV RAMAKRI SHNAN AT 6: 39 AM
4 C OMME NT S:
Recommend this on Google
Hans Petter Bauhr June 3, 2013 at 4:33 AM
Priceless basic Hello world! example for OSB newbies. Just
what I needed to get on my feet and stumble onward... :-)
Reply
Fernando Muoz October 1, 2013 at 7 :54 AM
Thanks!! im learning about OSB
Reply
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 10/11
Newer Post Older Post
Enter your comment...
Comment as:
Google Account
Publish

Preview
Home
Atan Sucipto October 8, 2013 at 3:06 AM
get an error as
BEA-382502
OSB Service Callout action received an error response
404
PipelinePairNode1
PipelinePairNode1_request
stage1
request-pipeline
Reply
Sajeev Ramakrishnan October 8, 2013 at 9:07 AM
Hello Atan,
Check whether the HTTP URL is present by manually
posting message using either nettool or soap-ui.
Regards,
Sajeev
Reply
24/7/2014 Oracle Service Bus: OSB Dev using Eclipse - Getting Started
http://osb-soa.blogspot.in/2011/07/osb-dev-using-eclipse-getting-started.html 11/11
Subscribe to: Post Comments (Atom)

F O L L O W B Y E M A I L
Email address... Submit

You might also like