these two things are not clear to me ......
You mean you don't understand what j2ee and ejb are?
Well the truth is I won't be able to explain both of them in one post.
J2EE is an architecture for making webservices and perhaps other types of systems as well. the difference with J2SE (which is the standard Java) is the presence of JSPs, Servlets (both of which can only run on a server) and the enterprise java beans(of which there are three types session, message and entity types.) Often the architecture uses JSPs for the front of the system (JSPs are HTML pages with Java code ambedded in them), Servlets for controlling the system (These are Java classes which run on a server), and ejbs for the business logic and storage of data. JSPs are actually compiled into Servlets first and so they have to run on the server as well. There is really much more to these things than I've said here.