public class AppJndiNamingStrategy extends Object implements IJndiNamingStrategy
java:app/<moduleName>/<bean-name>[!<fully-qualified-interface-name>]
The moduleName is the name of the module in which the session bean is packaged. In a stand-alone ejb-jar file or .war file, the moduleName defaults to the base name of the module with any filename extension removed. In an ear file, the moduleName defaults to the pathname of the module with any filename extension removed, but with any directory names included. The default moduleName can be overriden using the module-name element of ejb-jar.xml (for ejb-jar files) or web.xml (for .war files).
Constructor and Description |
---|
AppJndiNamingStrategy(String moduleName)
This naming strategy will use the java:global JNDI name format for lookups.
|
Modifier and Type | Method and Description |
---|---|
String |
calculateName(String ejbName,
Class<?> ejbType)
Calculates the JNDI name based on the given name and type
|
public AppJndiNamingStrategy(String moduleName)
moduleName
- The name of the modulepublic String calculateName(String ejbName, Class<?> ejbType)
calculateName
in interface IJndiNamingStrategy
ejbName
- The name value for the EJB annotation.ejbType
- The type of the injectable field.Copyright © 2015. All rights reserved.