Interface EjbOverHttpService


  • public interface EjbOverHttpService
    The main point of the EjbOverHttpService 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 Detail

      • getAppClassLoader

        ClassLoader getAppClassLoader​(String applicationName)
        Resolve ClassLoader 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