tailieunhanh - WebSphere Studio Application Developer Version 5 Programming Guide part 65

WebSphere Studio Application Developer part 65 provides integrated development tools for all e-business development roles, including Web developers, Java developers, business analysts, architects, and enterprise programmers. The customizable, targeted, role-based approach of WebSphere Studio Application Developer will be characteristic of all new products built on the WebSphere Studio Workbench. It is well integrated with WebSphere Application Server and provides built-in server test environments that can be used for testing and profiling Web applications | Building an application client module Our application client module ItsoProGuideJavaClient contains one program CustomerListingDS. This program is basically a copy of the CustomerListing program developed in Chapter 5 Developing Java applications see source listing in Figure 5-10 on page 102 . The difference in the application client module is that we use a data source to connect to the database protected static Connection connect Connection con null try ctx new ds java comp env jdbc mybank con catch e Naming-Exception catch e SQL-Exception return con Here are some short instructions on how we built the application client module Create a new project of type J2EE - Application Client Project. Enter a name of ItsoProGuideJavaClient and use the existing ItsoProGuide enterprise application. Create the class and use the source in sg246957 sampcode deploy-app client CustomerListingDS Open the deployment descriptor and on the References page define a resource environment reference named java comp env jdbc mybank pointing to our jdbc ejbbank data source as shown in Figure 18-5 . Note You have to use a resource environment reference. Defining a resource reference in Application Developer does not work when running the program. Resource references can currently only be defined using the Application Client Resource Configuration Tool of WebSphere Application Server outside of Application Developer to update the client deployment descriptor. Define the CustomerListingDS program as the main application of the module Figure 18-6 . Click Edit to locate the main class. 614 WebSphere Studio Application Developer Version 5 Programming Guide Figure 18-6 Defining the main program To test the .

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.