ibm.com/developerWorks
Presented by developerWorks, your source for great tutorials
Assuming that the EJB component and the WAR files are deployed in the same EAR
file, the above would add an EJB reference to the Hello EJB component. You need two
more files for this example. Unzip the sample source, find
happy.jsp
and
index.html
in
the
Hello
example directory (under
web
), and copy
happy.jsp
and
index.html
into the
web
directory (
C:\tutorials\axisEJB\axisEJBHello\web
). You will use these files to see a
list of Web services deployed in your Web application and to see if everything is
correctly setup.
Create Web Service Deployment Descriptor for EJB
component
So far you have downloaded and installed the ETTK. Then you created a simple EJB
component called
Hello
. Then you created a Web application. You configured the Web
application s
web.xml
file to use Axis as the SOAP transport. You also configured the
Web application to refer to your EJB component called
Hello
.
You need a way for Axis to know that you want to expose your EJB component as a
Web service. You can accomplish this with an Axis Web Service Deployment
Descriptor (WSDD). The WSDD needs the ability to state the following about your EJB
component: What kind of service?, Where to look for the service?, What is the structure
of your EJB component?.
Thus you need to state the following:
1) What Kind of service?
This service is EJB based
2) Where to look for the service?
The JNDI Context factory class for your EJB application server
The JNDI URL of your EJB application server
The home JNDI name of your EJB component
3) What is the structure of your EJB component?
The remote interface of the EJB component
The home interface of the EJB component
All of the above questions are answered with the Web Service Deployment Descriptor
Page 10 of 33
Service enable EJB SessionBeans with the IBM ETTK






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