Java Reference
In-Depth Information
} catch (NamingException ex) {
Logger.getLogger(AppTest.class.getName()).log(Level.FINEST,
null, ex);
} finally {
container.close();
}
}
Since the embeddable EJBContainer reference by maven was not up-to-date
while writing this topic (which caused the error " No EJBContainer provider
available "), I directly addressed the glassfish-embedded-static-
shell.jar file in the following way:
• Maven variable declaration:
<properties>
<glassfish.installed.embedded.container>glassfish_dir\lib\embedded\glassfish-embedded-static-shell.jar</glassfish.installed.embedded.container>
</properties>
• Declaration of dependence:
<dependency>
<groupId>glassfish-embedded-static-shell</groupId>
<artifactId>glassfish-embedded-static-shell</artifactId>
<version>3.2</version>
<scope>system</scope>
<systemPath>${glassfish.installed.embedded.container}</systemPath>
</dependency>
During operation, the embeddable EJBContainer acquires resources that would
normally be released at the end of the process to allow other applications to take
advantage of the maximum power of the machine. In the previous version of the
specification, a developer used the EJBContainer.close() method in a fi-
Search WWH ::




Custom Search