tailieunhanh - Java & XML 2nd Edition solutions to real world problems phần 7

cũng trong gói . Lớp này chức năng chuyển đổi chính xác như lớp Locator đã làm cho phân tích cú pháp SAX: cung cấp thông tin về nơi mà hành động đang xảy ra. Phổ biến nhất được sử dụng để báo cáo lỗi, giao diện trông như thế này: | Java XML 2nd Edition stubs to describe the methods a remote object has available for invocation. The client acts upon these stubs which are Java interfaces and RMI handles the magic of translating requests to a stub into a network call. This call invokes the method on the machine with the actual object and then streams the result back across the network. Finally the stub returns this result to the client that made the original method call and the client moves on. The main idea is that the client doesn t typically worry about the RMI and network details it uses the stub as if it were the actual object with implemented methods. RMI using JRMP -I Java s remote protocol makes all this network communication happen behind the scenes allowing the client to deal with a generic exception and spend more time handling business rules and application logic. RMI can also use different protocols such as Internet Inter-ORB Protocol IIOP allowing communication between Java and CORBA objects often in different languages such as C or C . RMI carries a cost though. First using RMI is resource-intensive. JRMP provides very poor performance and writing a remote protocol to replace it is not a simple task. As clients issue RMI calls sockets must be opened and maintained and the number of sockets can affect system performance particularly when the system is accessible via a network which then requires more sockets to be opened for HTTP access . RMI also requires a server or provider to bind objects to. Until an object is bound to a name on one of these providers the object is not accessible to other programs. This requires using an RMI registry a Lightweight Directory Access Protocol LDAP directory server or a variety of other Java Naming and Directory Interface JNDI services. Finally RMI can involve a lot of coding even with all the helpful RMI server classes you get with the JDK a remote interface describing the methods available to be invoked must be coded as .

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.