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

WebSphere Studio Application Developer part 43 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-14 Creating an entity bean page 3 In this page you can specify the superclass to the bean class and declare which interfaces should the remote and local interfaces extend. Note The bean superclass has nothing to do with the EJB inheritance mechanism supported by Application Developer and WebSphere Application Server. It is simply a way to declare regular Java inheritance for the bean class. Click Finish to complete the creation of your new entity bean. Define the Account and TransRecord beans Repeat the same process for the other two CMP entity beans Account and TransRecord according to the data on Table 12-2 and Table 12-3. Make sure to select Use the single key attribute type for the key class. Table 12-2 Account bean CMP attributes Name Type Key Local Interface id String Yes N A balance No No type String No No 394 WebSphere Studio Application Developer Version 5 Programming Guide Table 12-3 TransRecord bean CMP attributes Name Type Key Local Interface timeStamp Yes N A transType String No Yes transAmt No Yes Our transaction record objects do not have a natural primary key. As you know we must come up with an artificial unique identifier in order to be able to store such objects in a relational database. For simplicity we chose to create a new object and set it as the primary key when transaction record objects are created. The approach works just fine in our sample environment but could fail in the real world. If the application is deployed to two servers in a cluster for instance both can try to create a new transaction record at the very same time. This would lead to an error due to duplicate primary keys. Note It is common to find entities that do not have a natural unique identifier. The EJB specification touches this problem when it introduces the unknown primary key class for CMP entity beans . The problem is that WebSphere Application Server Version 5 does not

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.