For that, do the following:
%wl.home%\samples\domains\examples\setExamplesEnv.bat
%wl.home%\server\bin\ant
We can even test whether our EJB deployment went fine by executing a test
client, as shown here:
%wl.home%\server\bin\ant run
XFire export and Bind EJB: In this step, we create the web application in
.war format and deploy it in the web server. Change directory to ch05\
04_XFireExportAndBindEjb\XFireBind and execute ant to build the web
application, as shown here:
cd ch05\04_XFireExportAndBindEjb\XFireBind
ant
This will generate the war file, which in turn contains all required libraries extracted
out from the XFire installation folder. Folder dist will contain XFireBindEjb.war,
which should be deployed in the webapps folder of Tomcat (or any other relevant
web server). Now, restart the server.
The web service would have been exposed by now and the service definition can be
accessed using the following URL:
http://localhost:8080/XFireBindEjb/services/InvokeService?WSDL
We can now write a Client similar to what we have seen in the previous few
examples to test the web service.
Pages:
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183