I would normally agree. However, as I stated previously, if I remove the @Stateless from the UnitTest then EclipseLink is unable to locate the DataSource in JNDI as there are no EJBs defined within the project at that point. When I add the @Stateless back onto the AppTest class then the DataSource lookup from EclipseLink is successful.
Also, when the container loads it appears to locate and load this bean successfully.
Console Output:
INFO: Security service(s) started successfully....
Jun 21, 2010 3:42:39 PM com.sun.ejb.containers.BaseContainer initializeHome
[b]
INFO: Portable JNDI names for EJB AppTest : [java:global/test-classes/AppTest!com.intraxinc.survey.persistence.test.AppTest, java:global/test-classes/AppTest]
[/b]
My issue currently isn't so much getting the GlassFish container to load but rather being able to locate the EntityManager for the persistence unit. If I can get past this then I think the application and unit test will run successfully.
[Message sent by forum member 'fericit_bostan']
http://forums.java.net/jive/thread.jspa?messageID=475269