Embeddable Container - glassfish-embedded-static-shell (220.127.116.11-SNAPSHOT)
I am attempting to create Unit/Integration tests using the Embedded EJB 3.1 Container and have some issues and questions.
1) Is it possible to suppress the need for a datasource. Lets say I don't have any entities and just want to test some session beans. Is there any options using some properties or dummy domain.xml file to supress the need of a database?
2) I am just using Netbeans generated tests (and the project structure with the generated ant build) of some very basic sample Stateless EJB's but as soon as I add a MDB and start up the Embedded Container I get OutOfMemory Exceptions. I know that MDB's are not supported but how to I tell Embedded Contianer to just ignore it?
Test is below and I am just using Netbeans to run file.
EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();<br />
PersonServiceLocal instance = (PersonServiceLocal)container.getContext().lookup("java:global/classes/PersonService");<br />