J2ee is the detail of Java 2 platform for enterprise edition,it is used for the enterprise obviously.In  another word,j2ee is the data store of a enterprise.The j2me is called Jave 2 platform for Micro edition ellabotately,that is to say the j2me is be used in micro device programming such as the mobile phone and the auto casher in the street of some city.
 
The j2se edtion is :"java 2 standard edition ".ejb the the element of the j2ee struct.It can be devided into session ejb and the nosession ejb. the session ejb is will keep a fixed relationship when the client interview the server of j2ee.The nosession ejb will not keep a fixed realtionaship with the j2ee sever.   Generlly, some java bean which will be used to get or put some data into the database will be called nonsession bean, for ,the relationship with the database will be cut off when the task is over.And on the contrary,if a java bean which called shop cart for buyer should be called  session bean,this will be keep a fix relationship with the j2ee server before you finished your buy activities on the j2ee server.  Hope the details will help you more on java2.