J2SE java.io. Platform java.rmi.Remote Serializable java.rmi.Remote ................. ^ ...... ^ ............. ^ ...............^......... | | | | Interface Interface Interface Web Service J2EE EJBHome EJBObject EnterpriseBean Endpoint (javax.ejb) ^ (2) ^ ^ ^ | | | | | | Interface | | | SessionBean (1) | ................. | ....... | ............ ^ ...............|.. | | | | EJB Interface Interface | | Entwickler MyHome MyRemote MyBeanImpl (3) | ................. ^ ....... ^ ..............................|.. Server | | | Deploy- HomeObject Object (4) Web Service ment Impl Impl EndpointImpl
Durch die Einführung eines Business Interfaces MyBusiness, das MyRemote erweitert und MyBeanImpl implementiert, wird zur Compilezeit die semantische Korrektheit MyRemote und MyBeanImpl sichergestellt.
java.rmi. java.io. Remote Serializable _________ A _____________ A _________ | | Interface Interface EJBObject EnterpriseBean A A | | | Interface | SessionBean _________ | ____________ A _________ | Interface | | MyBusiness | | A A | | | | | Interface | | MyRemote MyBeanImpl