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.
Thanks and Regards
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads