Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
The above assumes you have the ETTK installed in
c:\ettk
. Next you need to declare
the Axis Ant tasks by using the classpath you defined called axis lib
(
id="axis lib"
). To declare an external Ant task, you need to use the
taskdef
as
follows:
classpathref="axis lib" />
Now that you have the Axis Ant tasks imported, you can start to use them. Deploy the
EJB component as a Web service with the Web Service Deployment Descriptor that
you just created by using the
axis admin
task as follows:
port="8080"
hostname="localhost"
failonerror="true"
servletpath="AxisEJB/services/AdminService"
debug="true"
xmlfile="deploy/deploy.wsdd"
/>
The
axis admin
Ant task is used to administer a local or remote Axis server.
The above Ant target deploys the EJB component to a Web application at
http://localhost:8080/AxisEJB by using the deployment descriptor you created earlier.
Go ahead and run
deploy.wsdd target
at this time.
If the deployment fails, using a browser go to the
happyaxis.jsp
page
(
http://localhost:8080/AxisEJB/happyaxis.jsp
), and see what is missing in your
configuration. Make adjustments accordingly.
Next ensure that the deployment worked by going to
http://localhost:8080/AxisEJB/index.html
and clicking on the link that says
"View the
Service enable EJB SessionBeans with the IBM ETTK
Page 15 of 33






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

servlet web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved