Wrap the web application into a j2ee application ear

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: bin $> dcmctl deploy/Application \ -f /home/users/to_deploy/simple-web.ear \ -a simple-web -co oc4j -rc mysumpleweb B. Wrap the Web application into a J2EE application (.ear file) before deployment because dcmctl supports only ear files. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ -f /home/users/to_deploy/simple-web-ear \ -a mysimpleweb -co j2ee1 -rc simple-web C. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ - f /home/users/to_deploy/simple-web.war \ - a simple-web D. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ -f /home/users/to_deploy/simple-web.war \ -a simple-web -co j2ee1 -rc mysimpleweb E. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deploy/Application \ -f /home/users/to_deploy/simple-web.war \ -a mysimpleweb -co j2ee1 -rc simple-web Answer: D QUESTION 8: Actualtests.com - The Power of Knowing 1Z0-301 Exhibit: dcmctl deployApplication -file name -a app_name [-co comp_name] [-rc root_context] Examine the syntax of the dcmctl deployApplication command. You want to deploy a J2EE application to your default OC4J instance that consists of a Web module named simple-app and that is packaged in the file simple.ear. The J2EE application should be deployed to your Oracle9iAS Instance named j2ee.1prod1.us. Certkiller .com. The J2EE archive is stored on the application server under the directory /home/users/to_deploy. The application should be administered under the name simpletest. Which is the correct approach using dcmctl to deploy your application? A. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ -f /home/users/to_deploy/simple.ear \ -a simple-test-co j2ee1.prod1.us. Certkiller .com \ -rc simple-test B. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deploy/Application \ -f /home/users/to_deploy/simple.ear \ -a simple-test -i j2ee1.prod.us. Certkiller .com \ -rf simple-app C. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ -f /home/users/to_deploy/simple.ear \ -a simple-test -i j2ee1.prod1.use. Certkiller .com D. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ -f /home/users/to_deploy/simple-app.war \ -a simple-test -i j2ee1.prod1.us. Certkiller .com E. Enter the following commands on your application server: $> cd $ORACLE_HOME/dcm/bin $> dcmctl deployApplication \ -f /home/users/to_deploy/simple-app.war \ -a simple-app -i j2ee1.prod1.us. Certkiller .com Answer: C QUESTION 9: A user authenticated to a partner application by Oracle9iAS Single Sign-On accesses another partner application in the same session. Actualtests.com - The Power of Knowing 1Z0-301 What does the second application do? A. Checks the htaccess file to authenticate the user. B. Uses the mod_osso cookie to authenticate the user. C. Rewrites the URL and stores it in the SSO database. D. Checks for the correct URL from the Single Sign-On server. Answer: D QUESTION 10: Most J2EE applications use a database to have a persistent storage for data. Servlets, as well as JSPs and EJBs, need to communicate with the database. Which two statements are true? (Choose two) A. To be portable across application servers J2EE applications use DataSource objects. B. The JDBC DriverManager class has logical names that make applications that use it portable. C. JDBC DriverManager class objects enable portable J2EE applications across application servers. D. Every JDBC 2.0 driver has its own implementation of DataSource objects that can be bound into an external JNDI namespace. E. Every JDBC 2.0 driver has its own implementation of DriverManager class objects that can be bound into an external JNDI namespace. F. Using the JDBC DriverManager class is the recommended way for a J2EE application to get a connection. Answer: A, D QUESTION 11: Which Oracle9iAS capabilities require an Infrastructure? (Choose all that apply) A. Single Sign-On B. Application Server Clusters C. All Oracle9iAS installation types D. Oracle9iAS Web Cache Clusters E. Invoking PL/SQL code via Database Access Descriptors Answer: A, B, D QUESTION 12: Most J2EE applications, servlets as well as JSPs and EJBs, need to communicate with the database. Which two are true regarding data sources? (Choose two) Actualtests.com - The Power of Knowing 1Z0-301 A. J2EE applications use JNDI to look up DataSource objects. B. J2EE applications retrieve connections to the database through DataSource objects. C. DataSource objects include the mapping between the logical database connection an...
View Full Document

This document was uploaded on 03/08/2014.

Ask a homework question - tutors are online