QuestionQ36

Deploying Java Applications

You created an Oracle Java Cloud Service instance by using an Oracle Database as a Service instance named DBaaS.

You deploy your application to the Oracle Java Cloud Service instance. The following code snippet is in your application's weblogic.xml deployment-descriptor file.

Question Image

What does this entry specify?

  • A An on-premise data source named DBaaS is configured for use by the application, but not when deployed to the cloud
  • B An on-premise data source named DBaaS is configured for use by the application that is deployed to the cloud
  • C An Oracle Database Cloud – Database as a Service instance named DBaaS is configured for the Oracle Java Cloud Service instance
  • D An Oracle Database Cloud – Database as a Service instance named DBaaS is configured as a data source for the application deployed to the cloud
Explanation

A resource-description in weblogic.xml maps the resource reference used by a web application to the JNDI name of a server resource, such as a JDBC data source. Mapping DBaaS to DBaaS therefore makes the DBaaS data source available to the application deployed in Oracle Java Cloud Service.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!