Câu 5: C9510-319: IBM WebSphere Application Server Developer Tools V8.5 with Liberty Profile
A developer is testing a web application using a Liberty profile server. The application will also need to run on a Tomcat server and cannot make use of any APIs that are specific to the Liberty profile server. How can the user ensure that no classes outside of the specification classes are used by the application dur…
Nội dung câu hỏi
A developer is testing a web application using a Liberty profile server. The application will also need to run on a Tomcat server and cannot make use of any APIs that are specific to the Liberty profile server. How can the user ensure that no classes outside of the specification classes are used by the application during the test?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Create a file server.env under the same directory as the server.xml file and add the following line: Class-Path-Visibility=spec
- B. Open the meta-inf/manifest.mf file under the web project, add the following line: Class-Path-Visibility: specification
- C. On the Server > Runtime Environment preference page, edit the Liberty profile runtime entry and select only the Specification checkbox under the API visibility section.
- D. In the Server Configuration editor, create a Classloader Service item under the application element and add the attribute apiTypeVisibility with the value of — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.