I use the following application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<application version="6" xmlns="
http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd">
<application-name>4eo-babylon</application-name>
<display-name>4eo-babylon-application</display-name>
<module>
<web>
<web-uri>4eo-babylon-admin-war.war</web-uri>
<context-root>4eo-babylon-admin-war</context-root>
</web>
</module>
<module>
<ejb>4eo-babylon-core-ejb.jar</ejb>
</module>
</application>
The JNDI binding is mapped to EAR filename. So in java:global is the name of the EAR file and then the modules. I could change of the modules - that functions correctly. Unfortunately, a call to the java:app and java:module alwyas throws a NamingException since they do not exist (at first sight). I look into the InitialContext and see only java:global.
Why is this so? Where is the java:app and java:module?
Greetings
Jan
[Message sent by forum member 'ossaert' (jan_decooman_at_yahoo.com)]
http://forums.java.net/jive/thread.jspa?messageID=387105