In order to implement error handling at the JSP page level to ensure the transaction is rolled back and the exception does not fall through to the application level, which of the following MUST the application developer do?
A. Call the com.ibm.commerce.server.JSPHelper class.
B. Catch the ECSystemException.
C. Define the error handler in the deployment descriptor.
D. Call the com.ibm.commerce.server.JSPError class.
E. Specify a JSP page as an errorHandler page.
正解:A,E
質問 2:
An application developer has customized the login functionality of the Madisons starter store and needs to unit test the customization using the Storefront Test Automation Engine.
If the unit test has to be performed with two different data sets (e.g., user1 / password1, user2 / password2), how should the application developer include the test data in the test case?
A. Invoke the test automation script from a command line and provide test data as command line parameters.
B. For each data set write a separate test automation script.
C. Include the test data in an XML data file.
D. Include both data sets in a single test automation script.
正解:C
質問 3:
A developer is asked to remove the "No Inventory" option that appears in the Store Publish Wizard when publishing ExtendedSitesV2.sar.
Which file should be modified in ExtendedSitesV2.sar before publishing?
A. MemberRegistrationAttributes.xml
B. ForeignKeys.dtd
C. Store-refs.xml
D. ibm-wc-load.xml
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
An application developer is asked to develop a Web service to retrieve a list of products by inventory level. There is no specific requirements as to the Web Services Definition Language (WSDL) definition for this Web service.
Which is the quickest way to accomplish this?
A. Create a new Controller Command that uses existing Enterprise JavaBeans (EJB) finders to locate and populate the results, and then expose this through the Web services layer.
B. Expose the Inventory module's FindProductsByInventory command as a Web service.
C. Add an Inventory field to the CATENTRY table, map this to the existing CatalogNavigationNoun, and reuse the Web services mapping for that noun
D. Define a new Extended XPath expression and map this to a SQL in a Query Template File.
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
An application developer needs to add Web 2.0 features to the Consumer Direct store model. This involves registering events that respond to AJAX calls. Which dojo function must be used to register an event and the JavaScript function that triggers it?
A. dojo.subscribe(topic, context, method)
B. dojo.listen(topic, context, method)
C. dojo.connect(topic, context, method)
D. dojo.connectPublisher(topic, object, event)
正解:D
質問 6:
An application developer needs to ensure that multiple portlets on a page and across pages can communicate as one client with the WebSphere Commerce Server. Where in the portlet session should the authentication callback handler object and business context object be stored?
A. contextData
B. contextService
C. contextId
D. contextKey
正解:D