Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home C-tutorials EJB deployment descriptor

Related Tutorials


Share on Google+Share on Google+

EJB deployment descriptor

This page discusses - EJB deployment descriptor

EJB deployment descriptor


Deployment descriptor is the file which tells the EJB server that which classes make up the bean implementation, the home interface and the remote interface. it also indicates the behavior of one EJB with other. The deployment descriptor is generally called as ejb-jar.xml and is in the directory META-INF of the client application. In the  example given below our application consists of single EJB .Here the node







<?xml version="1.0" encoding="UTF-8"?>
<application-client version="5" xmlns=""  xmlns:xsi="" xsi:schemaLocation="">
<description>Accessing Database Application</description>

<ejb-name>secure</ejb-name>:-This is the node that assigns the name to the EJB.

<description>Accessing Database Application</description>:-This node gives the brief description about the Ejb module created.

<session-type>Stateless</session-type>:-This node assigns the Session bean as stateless or stateful. Here stateless means to say accessing Remote interface.


If you enjoyed this post then why not add us on Google+? Add us to your Circles

Liked it!  Share this Tutorial

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 18, 2011

Related Tutorials

Discuss: EJB deployment descriptor  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image