TAILIEUCHUNG - The j2eetm tutorial - phần 3

Các công ty hoặc người cấu hình và triển khai ứng dụng J2EE, quản lý máy tính và cơ sở hạ tầng mạng mà các ứng dụng J2EE chạy, và giám sát môi trường thời gian chạy. Nhiệm vụ bao gồm những thứ như điều khiển giao dịch thiết lập, các thuộc tính bảo mật, và các kết nối quy định cụ thể cơ sở dữ liệu. | A Session Bean Example 71 Every create method in the home interface corresponds to an ejbCreate method in the bean class. The signatures of the ejbCreate methods in the CartEJB class follow public void ejbCreate String person throws CreateException public void ejbCreate String person String id throws CreateException Compare the ejbCreate signatures with those of the create methods in the CartHome interface import import import import public interface CartHome extends EJBHome Cart create String person throws RemoteException CreateException Cart create String person String id throws RemoteException CreateException The signatures of the ejbCreate and create methods are similar but differ in important ways. The rules for defining the signatures of the create methods of a home interface follow The number and types of arguments in a create method must match those of its corresponding ejbCreate method. The arguments and return type of the create method must be valid RMI types. A create method returns the remote interface type of the enterprise bean. But an ejbCreate method returns void. The throws clause of the create method must include the and the . Remote Interface The remote interface which extends defines the business methods that a client may invoke. Here is the source code for the Cart remote interface 72 Session Beans import . import import public interface Cart extends EJBObject public void addBook String title throws RemoteException public void removeBook String title throws BookException RemoteException public Vector getContents throws RemoteException The method definitions in a remote interface must follow these rules Each method in the remote interface must match a method implemented in the enterprise bean class. The signatures of the methods in the

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.