Hi srinivas,
Welcome to the SCBCD fourm
when companies are not using EJB stuff anymore ? Tell your friends to take it easy and travel a bit. EJB is nowhere close to disappear anytime soon. It is true, though, that the technology is complex and that lately it has been in heavy competition with more lightweight frameworks, such as Spring. However, a lot of companies are still using EJBs whether in version 1.x or 2.x. The new EJB 3.0 specification is almost done and it shall be released next year or so. When this will be effective, several things will naturally happen.
First, application server vendors will have to upgrade their products and most importantly sell them to companies who have all their code base in EJB 1.x or 2.x. This is not going to be a piece of cake for them since companies will have to migrate a very large EJB code base and this is where you come in. It is a good thing to learn new frameworks (Spring, Hibernate, etc) but it is even better to still learn EJB 2.x now because your expertise will be invaluable in this migration process.
Trust me, I'm right in there. I'm an EJB 2.x oldie and I have learned Spring, Hibernate and the new EJB 3.0 spec. I can assure you that knowing how to bridge these technologies is a very valuable asset to count on when looking for job opportunities.
Give it a try... I interview developers on a daily basis and I can assure you that I put a very strong weight on their tech culture. In order to do good things in the future, you have to know what went bad in the past. HOw can you assess that Hibernate or EJB 3.0 are good if you don't know what EJB 2.x was like?