A developer creates a new web page, which uses JSF technology in Rational Application Developer. When creating a page, what is completed automatically by the JSF support provided with RAD?
A. a Managed Bean for the application to access page data
B. a set of JSF-specific custom tag libraries for the components on the page
C. a data source for each JPA Bean used by the JSF components
D. a validator for each JSF component on the page
正解:A
質問 2:
There is a simple named query defined in the following way: @NamedQuery(name=etCustomer? query=elect c from Customer c?@NamedQuery(name=?etCustomer? query=?elect c from Customer c? Which Entity Manager (em) method must be used to access this defined named query?
A. Query q = em.findNamedQuery(etCustomer?;Query q = em.findNamedQuery(?etCustomer?;
B. Query q = em.getNamedQuery(etCustomer?;Query q = em.getNamedQuery(?etCustomer?;
C. Query q = em.createQueryByName(etCustomer?;Query q = em.createQueryByName(?etCustomer?;
D. Query q = em.createNamedQuery(etCustomer?;Query q = em.createNamedQuery(?etCustomer?;
正解:D
質問 3:
A developer needs to check the state of one of the JSF Managed Beans when an application is paused. Although all Managed Beans (and other scoped objects) can be found by looking at the FacesContext object available in the Variables view, finding the objects this way can be difficult and time consuming. What is the simplest way for a developer to check the state of scoped objects and view attributes?
A. create matches for scoped objects and view attributes and view the values at the Expression window
B. print the report of the scoped objects and view attributes, then filter the scoped object out of the list
C. execute the pauseTime.bat under the install_root/eclipse/plug-ins/scopedValue, which will print the values of the scoped objects and view attributes
D. enable the runtime JVMPI values for the variables
正解:A
質問 4:
You have a JEE 5.0 project (EARProject) that will be run in WebSphere Application Server. From a EARWeb project, you want to access EJBs stored in an EAREjb project. Both projects are part of the enterprise application EARProject. How can you accomplish this so that the references are resolved at runtime?
A. No configuration is needed because any jar file in an EAR project is automatically referenced by any project in the Java EE project.
B. You update web.xml and ejb-jar.xml adding <classpath path='../lib'>.
C. You right-click your web project and select Properties > Java Build Path and add the EJB Project in the Projects tab.
D. You right-click your web project and select Properties > Deployment Assembly and add a reference to the EJB project.
正解:D
質問 5:
In Page Designer, the Preview pane shows you how the current page is likely to look when viewed in an external web browser. Which browsers can be used inside RAD to render the preview?
A. Windows Internet Explorer or Mozilla Firefox
B. Windows Internet Explorer only
C. No browser can be run inside RA To preview, you need to use the Tools > Launch External Web Browser menu option to open the current file in the default web browser.
D. Mozilla Firefox only
正解:A
質問 6:
A developer needs to debug a Jython script running on the local test server in Rational Application Developer. Which statement is true about debugging Jython scripts?
A. The server can run in Normal mode for debugging.
B. They are debugged using Print statements on the Jython scripts.
C. Jython scripts do not require a server for debugging.
D. The server must be started in Profiling mode.
正解:A