Package fish.payara.ejb.http.endpoint
Interface EjbOverHttpService
-
public interface EjbOverHttpService
The main point of theEjbOverHttpService
abstraction 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 ClassLoader
getAppClassLoader(String applicationName)
ResolveClassLoader
for an application.Object
getBean(String jndiName)
Resolve a EJB for a given JNDI name.
-
-
-
Method Detail
-
getAppClassLoader
ClassLoader getAppClassLoader(String applicationName)
ResolveClassLoader
for an application.- Parameters:
applicationName
- never null or empty- Returns:
- The
ClassLoader
to 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
-
-