TAILIEUCHUNG - WebSphere Studio Application Developer Version 5 Programming Guide part 47

WebSphere Studio Application Developer part 47 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 | Figure 12-57 Universal Test Client run BankEJB business method Select the getAccount method enter 102-2002 as account number click Invoke then click Work with Object. An object reference of type Account is added. Remember getAccount returns a data transfer object. Note that the account data is displayed because Account has a toString method. Figure 12-58 Universal test Client working with a result object Expand the Account object and run some of the getter methods. 434 WebSphere Studio Application Developer Version 5 Programming Guide In the BankEJB reference select the getTransactions method. Enter an account number 102-2001 and click Invoke. Click Work with Object to add the result array to the object references Figure 12-59 . Figure 12-59 Universal test Client working wit a result array 1 Expand the TransRecord 2 array and select Inspect Fields. The array is added to the Parameters pane. Select one of the objects and click the - icon on its right side to add the object as a result. Click Work with Object to add the result object to the references from where you can run its methods Figure 12-60 . Figure 12-60 Universal test Client working wit a result array 2 Chapter 12. Developing EJB applications 435 You can play with the UTC to make sure all of your EJBs work. Another method you can try is the getAccounts method of the BankEJB bean. It returns an array of Account beans for one customer. Use the same technique as for the array of transaction records to explore the array of accounts. When you are done close the browser and stop the server in the Servers view. Adapting the Web applications Our two Web applications ItsoProGuideBasicWeb and ItsoProGuideStrutsWeb use the Banking facade to access the in-memory Bank. We can now replace the Banking facade with a new facade that interacts with our EJB implementation. We provide the new facade in sg246957 sampcode dev-ejb facade Import the new facade into both Web projects ItsoProGuideBasicWeb and .

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.