WLInitial-
ContextFactory, which can create initial contexts for accessing the Web-
Logic naming service.
We have configured org.apache.soap.providers.StatelessEJBProvider
for binding the EJB service to speak SOAP protocol. StatelessEJBProvider
implements the two methods defined in org.apache.soap.util.Provider,
that is shown in the following code:
public interface Provider
{
public void locate(DeploymentDescriptor dd, Envelope env,
Call call, String methodName, String targetObjectURI,
SOAPContext reqContext) throws SOAPException ;
???
Chapter 4
[ 91 ]
public void invoke(SOAPContext req, SOAPContext res)
throws SOAPException ;
}
A provider's function is split into two pieces??”locating the service (which
also includes any verification that the service can be execute at all and by the
client), and actually running it. It's up to the invoke method to call the actual
service up to grab and format the response into a SOAP response object.
During initialization, StatelessEJBProvider will do the following to get a
remote reference to the EJB component:
EJBHome home = (EJBHome) PortableRemoteObject.
Pages:
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148