Community

EJB 3.1 @Singleton remote access

reply from jaikiran pai in JNDI and Naming - View the full discussion

So you have:

 

Christian Tre wrote:

 

The ear is packed as following

 

+ META-INF
| | ejb-jar.xml
| | MANIFEST.MF

.ear/META-INF/ejb-jar.xml? That's not how .ear are packaged. The ejb-jar.xml should reside in the .jar/META-INF folder of the EJB jar (I guess your ejb3.jar). And then the .ear may (optionally) contain a META-INF/application.xml. So the .ear would look something like:

 


.ear
 |
 |--- META-INF
 |          |
 |          |--- application.xml
 |     
 |--- ejb3.jar
 |     |
 |     |--- META-INF
 |     |          |
 |     |          |--- ejb-jar.xml
 |     |          |--- persistence.xml
 |     |
 |     |--- [the classes go here]

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community