Sunday, January 29, 2012

Oracle Service Bus: How to create Proxy and Business Services Part 2.3: Tutorial; Create Business Services.

Oracle Service Bus: How to create Proxy and Business Services Part 2.3: Tutorial; Create Business Services.

Create the Business Services
In the routing a loan scenario, when the interest rate requested on a loan application is greater than or equal to 5%, then the loan application is routed to the normal loan processing service for approval. If the interest rate requested on a loan application is less than 5%, then the loan application must be approved by a manager, therefore it is routed to a manager approval service.

Create the NormalLoan Business Service
1. In the Oracle Service Bus Console Change Center click Create to create a
new session.
2. In the Project Explorer, select the BusinessService folder.
3. In the Select Resource Type list, select Business Service.

4. Enter a name for the service. In this case, enter NormalLoan.
5. For Service Type, select WSDL Web Service, then click Browse. Select the
WSDL and port on which to base the business service:
a. In the WSDL Browser, select the normalLoan WSDL
b. Select the port (helloPort) for the WSDL.
c. Click Submit.
The text field for the WSDL port service type is populated with the value
selected on the Create a Business Service - General Configuration page.
6. Click Next.






7. Accept the default protocol, http.
8. Select none for the Load Balancing Algorithm, since load balancing is
relevant only when a service specifies multiple end points.
When you specify multiple end points and a load balancing algorithm, if one
end point is overloaded or not available at run time, the message can be sent
to the next service in the list of end point URIs. In this case, there is only one
service, therefore accepting the default behavior or selecting none does not
affect the behavior of the proxy service at run time.
9. The End Point URI of the business service is the endpoint URI on the server
on which the service is deployed. Ensure that the pre-populated value for the
End point URI in the “Existing URIs” field is
http://<host:port>/njws_basic_ejb/NormalSimpleBean.
The host and port values specified for <host:port> represent the machine
and port on which your Oracle Service Bus server is running.
10. Accept the default settings for the remaining options on the page and click
Next.

11. In the Create a Business Service-HTTP Transport Configuration page, accept
the default settings on this page, then click Next.
12. In the Create a Business Service-SOAP Binding Configuration page, accept
the default settings and click Next.
13. In the Message Handling page, click Next.
The Create a Business Service-Summary page is displayed. You can now
check if all the settings of the business service have been implemented
correctly.
14. Click Save to accept the configuration settings.
To turn on monitoring for the NormalLoan business service, click the
NormalLoan business service in the Resources pane. The View a Business
Service page is displayed. The Operational Settings tab on this page has
options to enable monitoring for the business service.
To enable monitoring:
a. Click the Operational Settings tab.
b. Select the Enabled check box for the Monitoring field.
c. Choose an aggregation interval for the service. The aggregation
interval is the period over which aggregated statistics related to the
service are computed for display in the Oracle Service Bus Console
dashboard. You can also accept the default value for the Aggregation
Interval, which is set to five minutes.
d. Click Update.
e. Activate the session.
You have completed the configuration of the NormalLoan business service on Oracle
Service Bus Console.


Create the ManagerLoanReview Business Service
To create the business service to which a loan application is routed when the
interest rate requested in that loan application is less than 5%.
Follow the same tasks as described in the previous section on creating the
ManagerLoanReview business service, but use the configuration parameters in the
following table.


Summary
You have created two business services (NormalLoan and ManagerLoanReview), a
proxy service (LoanGateway1) and two WSDL resources (normalLoan and
ManagerApprovalService) that are the resources required for this tutorial.

Amazon Bedrock and AWS Rekognition comparison for Image Recognition

 Both Amazon Bedrock and AWS Rekognition are services provided by AWS, but they cater to different use cases, especially when it comes to ...