users@glassfish.java.net

Re: Embedded glassfish 3.1 - EJB JUnit Testing not working- ...

From: <forums_at_java.net>
Date: Fri, 17 Jun 2011 13:19:27 -0500 (CDT)

Okay. I viewed the deployment files in the temp directory after setting the
system property. Deployment folder contains 'lib' directory only if i set the
dummy jar to Map. If i remove the dummy jar from Map entry then only the
current EJB module's class files are there in the temp deployment folder.

 

Note: I have no file called dummy.jar in my project or system. Just
 inlcuded p.put(EJBContainer.MODULES,new File("target/classes/dummy.jar"));
and it worked.

 

Still I am using the embedded glassfish 3.1 for junit testing.

 

<dependency>

     <groupId>org.glassfish.extras</groupId>

     <artifactId>glassfish-embedded-all</artifactId>

     <version>3.1</version>

     <scope>test</scope>

   </dependency>


--
[Message sent by forum member 'Gladiator_FZ']
View Post: http://forums.java.net/node/812613