Dear Chandan,
No body is allowed to access the bean class directly except the container, because it intercepts every call to the been to step in and add its services, like security, transactions and persistence.
I suggest that you read a Tutorial or a book to get you started, you can try Sun's
J2EE 1.4 Tutorial, or
Head First EJB book.
[ July 13, 2005: Message edited by: Nadeem Awad ]
Share Knowledge to gain it.<br /> <br />SCJP 1.2, SCDJWS 1.4, SCWCD 1.4, SCBCD 1.3, ICAD