The manifest file of an OSGi application project contains the following headers: Application-Content: BundleA;version=1.0.0,BundleB; version=1.0.0
Use-Bundle: BundleC;version=1.0.0
Which statement is true about the bundle content of this OSGi application?
A. BundleC is directly contained in the application while BundleA and BundleB are references to bundles that are hosted in an OSGi bundle repository.
B. BundleA, BundleB and BundleC are directly contained in the application.
C. BundleA, BundleB and BundleC are references to bundles that are hosted in an OS Gi bundle repository.
D. BundleA and BundleB are directly contained in the application while BundleC is a reference to a bundle that is hosted in an OSGi bundle repository.
正解:D
質問 2:
A developer runs a servlet from an OSGi web project named CounterWebBundle on a Liberty server and gets the following error message when the doGet method of the servlet is run:
[ERROR ] SRVE0777E: Exception thrown by application class
'com.ibm.ws.eba.servlet.CounterServlet.doGet():42' java.lang.NoClassDefFoundError: javax.naming.Initia lContext
How should the developer resolve the problem?
A. Ensure that jndi-1.0 is added to the Feature Manager in the server configuration and Web 2.0 is selected in the Project Facets of the Properties for CounterWebBundle.
B. Ensure that jndi-1.0 is added to the Feature Manager in the server configuration and the javax.naming package is added to the Import-Package of CounterWebBundle.
C. Ensure that jndi-1.0 is added to the Feature Manager in the server configuration and the javax.naming.InitialContext is specified in the init-method of the bean specified in the blueprint.xml file of CounterWebBundle.
D. Ensure that jndi-1.0 and serverStatus-1.0 are added to the Feature Manager in the server configuration.
正解:B
質問 3:
A developer is using the WebSphere Server application Developer Tools to convert their existing JPA project to an OSGi JPA bundle. The original JPA project has a persistence.xml file that is by default located in the src/META-INF folder of the project.
The developer invokes the action to convert the JPA project to an OSGi bundle project.
Which changes are expected to be performed by the tools to the original project when it is converted to an OSGi bundle?
A. The MANIFEST.MF file is generated in the src/META-INF folder which contains the
persistence.xml file. The following entry is added to the MANIFEST.MF file:
Meta-Persistence:
B. The MANIFEST.MF file is generated in the BundleContext/META-INF folder. The
persistence.xml is moved from the src folder to the same location as the MANIFEST.MF.
C. The MANIFEST.MF file is generated under a new META-INF folder without a
Meta-Persistence:
Entry
D. The MANIFEST.MF file is generated under a new META-INF folder in the root of the
project. The following entry is added to the MANIFEST.MF file:
Meta-Persistence:
正解:A
質問 4:
Which of the following can be changed using Web Services Explorer?
A. Policy Set Attachment
B. JSR-109 Deployment Descriptors
C. Adding SOAP Headers
D. Adding HTTP Headers
E. Endpoint URL
F. Input values to the request
正解:C,E,F
質問 5:
What must be included in a SOAP fault message when an error occurs due to a value in the message Body element?
A. A detail element
B. A Body fault code
C. An application-specific fault code
D. A fault string element with a value of "Body"
正解:A
質問 6:
Which of the following is TRUE of the endptEnabler command?
A. It creates a bottom-up Web service from a stateless session EJB
B. It adds a HTTP or JMS router module to an EJB-based Web service application
C. It generates IBM-specific deployment classes for a Web service application
D. It requires an EJB Java archive (JAR) file as input
正解:B
質問 7:
What can be used to test and publish Web services to IBM UDDI?
A. Web services sample test JSPs
B. Web Services Explorer
C. Universal Test Client (UTC)
D. IBM UDDI Test Registry
正解:B
質問 8:
Using the WSDL editor, how can a developer create anew message for an operation input?
A. 1. In the Design view, select the input message under the operation table
2.Click on the Add message icon in the tool bar
3.Provide the name of the new message and click OK
B. 1. In the Design view, right-click on the input message under the operation table
2.Select Set Message -> New Message
3.Provide the name of the new message and click OK
C. 1. In the Graph view, right-click on the name of the input message
2.Select New -> Message
3.Provide the name of the new message and click OK
D. 1. In the Graph view, right-click on space below the message column
2.Select New -> Message
3.Provide the name of the new message and click OK
正解:B