May 2001
Intermediate to advanced
1088 pages
30h 13m
English
Because your server-side object doesn't rely on anything specific to SOAP, and because it can be just about any kind of Java class, there's no reason your server-side object can't use an EJB. In other words, you can use SOAP as a way to access an EJB remotely without using RMI-IIOP. Of course, you must write a layer to go between SOAP and EJB.
Listing 25.8 shows an example server-side object that accesses the Person bean from Chapter 12, "EJB Design."
package usingj2ee.addressbook; import java.util.*; import javax.naming.*; import javax.rmi.PortableRemoteObject; public class SoapPerson { public SoapPerson() { } public FullPersonViewer locatePerson(String ... |
Read now
Unlock full access