Ejb

We are new for Enterprice java beans....We are working with advance java..
now our question is that we want to used Enterprice java baeans on our project..so how can we run a simple ejb.. which ide is used for it.. and it is possible to run ejb with command promt.. give me the simple example for that.