To run the client, assuming that you have already compiled the Client while
building the sample, execute ant as follows:
ant run
XFire Export and Bind EJB
In Chapter 4, you have already seen the sample of how to expose a stateless EJB
service deployed in an application server. Hence, the consumer can use the SOAP
protocol to invoke the EJB service through a HTTP channel. Let us again do a similar
demonstration here, but with XFire now. Once you complete this example you
will better appreciate the similarity between XFire mechanisms and the process
of binding.
Some XFire Binding Tools
[ 114 ]
Sample Scenario
The scenario is to expose an EJB component service to external clients through
a HTTP channel. The difference between the EJB and SOAP sample in Chapter 4
(Binding??”The Conventional Way) is that here we will use XFire classes for service
binding. Also, the three previous samples in this chapter have demonstrated the
power of XFire in exposing web services. But this sample is more towards binding
an external service, which, as you will see very shortly, is more similar to the binding
activity we do using a JBI stack.
Pages:
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176