6.1 Creating Data Sources for RESTful WebService

Please follow the below steps to create data Sources for RESTful WebService.
  1. Login to Oracle Weblogic 12c console (http://hostname:port/console).

    Figure 6-1 Create RESTful WebService 1



  2. On successful login, the following window is displayed.

    Figure 6-2 Create RESTful WebService 2



  3. Click Domain Name > Services > Data Sources.
    The following window is displayed.

    Figure 6-3 Create RESTful WebService 3



  4. Click Lock & Edit button on the left panel. Click New on right panel and select Generic Data Source.

    Figure 6-4 Create RESTful WebService 4



  5. The following window is displayed.

    Figure 6-5 Create RESTful WebService 5



  6. Specify the following details:
    • Enter Data source Name
    • Enter the JNDI Name as jdbc/OfsllWSDS
    • Select Oracle as Database Type.
  7. Click Next.
    The following window is displayed.

    Figure 6-6 Create RESTful WebService 6



  8. Select the Database Driver Oracle's Driver(Thin) for Services connections;Versions:Any.
  9. Click Next.
    The following window is displayed.

    Figure 6-7 Create RESTful WebService 7



  10. Click Next.
    The following window is displayed.

    Figure 6-8 Create RESTful WebService 8



  11. Enter the Database details.
  12. Click Next.
    The following window is displayed.

    Figure 6-9 Create RESTful WebService 9



  13. Click Test Configuration. On completion, displays a confirmation message as Connection test succeeded.
  14. Click Next.
    The following window is displayed.

    Figure 6-10 Create RESTful WebService 10



  15. Select target Server as WS_ManagedServer.
  16. Click Advanced button and update the Inactive Connection Timeout to 300 seconds.
  17. Click Finish to activate the changes.