Package fish.payara.ejb.http.endpoint
Interface EjbOverHttpService
-
public interface EjbOverHttpServiceThe main point of theEjbOverHttpServiceabstraction is to decouple application server specific logic and dependencies from the non application server dependent endpoint so it can be used with a plain HTTP server during testing.- Author:
- Jan Bernitt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassLoadergetAppClassLoader(String applicationName)ResolveClassLoaderfor an application.ObjectgetBean(String jndiName)Resolve a EJB for a given JNDI name.
-
-
-
Method Detail
-
getAppClassLoader
ClassLoader getAppClassLoader(String applicationName)
ResolveClassLoaderfor an application.- Parameters:
applicationName- never null or empty- Returns:
- The
ClassLoaderto use for the given application name, or null if the application is unknown
-
getBean
Object getBean(String jndiName) throws NamingException
Resolve a EJB for a given JNDI name.- Parameters:
jndiName- never null or empty, only global names- Returns:
- The EJB, or
- Throws:
NamingException- in case no such EJB is known
-
-