Eclipse OEPE is creating a JAR file (a Java Archive) with all the artifacts which belong to the OSB configuration and deploys that archive to the OSB server.

The mechanism to deploy directly from Eclipse should only be used during development. Later when deploying to integration, quality assurance, or a production system, of course, a more automatic and reproducible way is necessary. This can be achieved through Apache Ant and WLST.


First we need to create the server reference inside Eclipse OEPE and after that we can deploy the OSB configuration with its projects to the server.

In Eclipse OEPE, perform the following steps to create a server:

1. Switch to the Servers tab and right-click in the empty window
.
2. Select New | Server.

3. In the Define a New Server window, select the right WebLogic Server version (Oracle WebLogic Server 11gR1 PatchSet 3).

4. Click on the Next button twice.

5. Select the Local option and select the Domain Directory of the local OSB server installation. If the Domain Directory drop-down list is empty, then click on Browse button to navigate to the domain directory on your machine:


6. Click on the Finish button.

Now the local OSB server is configured in Eclipse OEPE. The next step is to deploy the OSB configuration to this sever. Still in Eclipse OEPE, perform the following steps:

7. On the Servers tab, right-click on the server item that you just created and select Add and Remove.

8. In the Available list on the left, click on the osb-learnorasoa-configuration OSB configuration.

9. Click on Add to move it to the Configured list on the right and click on the Finish button.

10. The OSB configuration is deployed to the running OSB server and after a while the status will change from [Started] to [Started, Republish].

11. Right-click on the OSB server and select Publish.

12. After a while the status will change to [Started, Synchronized], indicating that Eclipse OEPE and the OSB server are synchronized.

13. Expand the tree and the status of each single OSB project within the OSB configuration is shown:




The OSB configuration is now successfully deployed and ready to be used.

Deploying to a remote server from Eclipse OEPE


Eclipse OEPE can also be used to deploy to a remote server. Just click on the Remote option when defining the WebLogic Server in the New Server wizard:



Creating an OSB Configuration Jar and use the OSB console to deploy it


An OSB configuration can also be deployed by using the OSB console. In Eclipse OEPE, perform the following steps:

1. In the Project Explorer, right-click on the OSB Configuration that you want to deploy to and select Export | Oracle Service Bus – Configuration Jar.

2. In the pop-up window, select the resources to export, enter the location of the configuration jar into the Jar File field and click on the Finish button.


In the OSB console, perform the following steps to import the Configuration Jar that we just created:

3. Select the menu System Administration on the left-hand side. You might have to use the scroll bar in order to see all the menu items.

4. Click on Create in the Change Center to start a new change session.

5. Click on the Import Resources button and use Browse to select the file created in the export (c:\temp\sbconfig.jar).

6. Click on the Next button.

7. Check that the right sources will be imported:



8. Click on the Import button to start the import.

9. The successful import is confirmed by the message the import was completed successfully.

10. Click on the Activate button in the Change Center.

11. Enter a text describing the changes into the Description field and click on the Submit button to activate
the changes.

If we need to adapt some properties like endpoint URI to match the target environment, we can use a customization file and apply that when doing the deployment.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

About This Site

Howdy! My name is Suersh Rohan and I am the developer and maintainer of this blog. It mainly consists of my thoughts and opinions on the technologies I learn,use and develop with.
Powered by Blogger.

- Copyright © My Code Snapshots -Metrominimalist- Powered by Blogger - Designed by Suresh Rohan -