As Arul said, find a best book for you from url given by him.
write the code for your ejb project and create an EAR and you will be able to deploy same.
Could you let us know, which
IDE are you using. In case you are using WSAD or RAD then it will be very easy for you to accomplish your task.
Shailesh