i m very much new to ejb, i read some theory.
and i want to write an stateless session bean.
what steps i need to follow, from scratch?
i m using eclipse, do i need something else also apart from eclipse?
what steps i need to follow to write a stateless session bean?
For the Eclipse support, you should use the JavaEE version of Eclipse. Assuming the server you plan to use supports Java EE 6 (all the major ones do at this point) then you can just create what Eclipse calls a 'Dynamic Web Project'.
You can add Servlets, EJBs and more to a Dynamic Web Project and it will work fine provided the server supports them. As of Java EE 6 all these things work in plain .war files.
Here's a video of creating a simple Dynamic Web Project in Eclipse and creating and deploying a Servlet, EJB and CDI bean using the Java EE version of Tomcat (TomEE):