I think the
EJB container takes care of creating the JNDI entries as a part of the Enterprise Naming Context for the bean.
Regarding your second query, if the persistent
unit name is not specified, I think the default pesistent unit is assumed(which should be the only PU defined for the application). If more than one PU is defined the you get
and then it is mandatory to priovide unit name.