官术网_书友最值得收藏!

Creating a new OSB project

In order to develop on the Oracle Service Bus, an OSB project needs to be available. This recipe will show how such an empty OSB project can be created. Such a project can either be created through the web-based OSB console or through the more developer-friendly Eclipse OEPE. Eclipse OEPE is an Eclipse IDE with Oracle Enterprise Plugin for Eclipse (OEPE) and the OSB plugin installed.

Getting ready

Make sure that you have access to a working Eclipse OEPE.

How to do it...

In Eclipse OEPE, perform the following steps:

  1. From the File menu, pick New | Other.
  2. Type Oracle Service Bus in the Wizards tree list:
    How to do it...
  3. Choose Oracle Service Bus Project from the list and click on the Next button.
  4. Enter basic-osb-service into the Project name fild:
    How to do it...
  5. Click on the New button to create an OSB Configuration (if there is not yet one).
  6. Enter osb-cookbook-configuration into the Configuration name field.
  7. Click on the Finish button to create the empty OSB project.
  8. Click on Yes to confirm that Eclipse OEPE will switch to the Oracle Service Bus perspective.

We have now created an empty OSB project inside our Eclipse worksace.

How it works...

An OSB project created through Eclipse OEPE is just a folder created below the location of the workspace. Visually, Eclipse OEPE shows it wrapped inside the osb-cookbook-configuration OSB configuration, but they are really both on the same level, just a subfolder of the workspace folder.

The project contains a .project file and a .settings folder like any Eclipse project. These files hold the necessary meta information about the project. An OSB project has the special Oracle Service Bus facet assigned.

This empty project can now be used to create the different OSB artifacts necessary for an OSB service. They can either be placed directly inside the project folder or a subfolder structure can be created in order to organize the OSB project. How to create a folder structure will be shown in the next recipe, Defining a folder structure for the OSB project.

There's more...

A new OSB project can also be created through the OSB console. The main difference to the approach shown before is that, through the OSB console we directly work on a running Oracle Service Bus instance. When using Eclipse OEPE, the project is stored in the Eclipse workspace and needs to be later deployed to an OSB instance. See the next recipe, to learn how to create a folder structure for holding the different OSB artifacts.

主站蜘蛛池模板: 革吉县| 承德市| 青田县| 安泽县| 清新县| 赤峰市| 罗山县| 开封县| 灵山县| 德兴市| 县级市| 天祝| 景谷| 西乌珠穆沁旗| 澄迈县| 江达县| 房产| 娄烦县| 屏东市| 麻阳| 康定县| 永安市| 寿阳县| 中宁县| 五台县| 特克斯县| 剑川县| 肇庆市| 吉水县| 霍城县| 井冈山市| 拜城县| 天水市| 临高县| 灌南县| 康乐县| 邯郸市| 佛冈县| 巴马| 兴海县| 乌拉特前旗|