public class JndiVariableResolver extends Object implements org.zkoss.xel.VariableResolver
| Constructor and Description |
|---|
JndiVariableResolver() |
JndiVariableResolver(String prepend,
String mapping)
This constructor take arguments to initialize JNDI names.
|
public JndiVariableResolver(String prepend, String mapping)
For example:
By default, session beans will bind to JNDI in the form ejbName/remote for remote interfaces and ejbName/local in the case of local interfaces. When the EJBs are deployed in an .ear file, the default jndi binding will be prepended by the name of the .ear file. As a result, if the ear file name is foo.ear, prepend is: foo
If you define your own jndi binding, the string should be in key-value pairs format as "a=custom/MySession,b=custom/MySession2,emf=java:/EntityManagerFactory"
prepend - prepended part of JNDI namemapping - key-value pairs for JNDI name and its corresponding variable namepublic JndiVariableResolver()
public Object resolveVariable(String var) throws org.zkoss.xel.XelException
resolveVariable in interface org.zkoss.xel.VariableResolvervar - JNDI binding nameorg.zkoss.xel.XelExceptionCopyright © 2015. All rights reserved.