javax.ejb.embeddable

Class EJBContainer

  • All Implemented Interfaces:
    AutoCloseable

    public abstract class EJBContainer
    extends Object
    implements AutoCloseable
    Used to execute an EJB application in an embeddable container.
    Since:
    EJB 3.1
    • Field Detail

      • PROVIDER

        public static final String PROVIDER
        Standard property name for specifying the embeddable container implementation bootstrap class. Property value is a fully-qualified class name.
        See Also:
        Constant Field Values
      • MODULES

        public static final String MODULES
        Standard property name for specifying the set of modules to be initialized. Property value is one of the following :
        • a single module name String from the JVM classpath
        • a String[] array of module names from the JVM classpath
        • a java.io.File representing an ejb-jar or exploded ejb-jar directory
        • a java.io.File array, each element of which represents an ejb-jar or exploded ejb-jar directory
        See Also:
        Constant Field Values
      • APP_NAME

        public static final String APP_NAME
        Standard property name for specifying the application name of the EJB modules executing within the embeddable container. If specified, the property value applies to the <app-name> portion of the portable global JNDI name syntax. If this property is not specified, the <app-name> portion of the portable global JNDI name syntax does not apply.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EJBContainer

        public EJBContainer()
    • Method Detail

      • createEJBContainer

        public static EJBContainer createEJBContainer()
        Create and initialize an embeddable EJB container. JVM classpath is searched for all ejb-jars or exploded ejb-jars in directory format.
        Returns:
        EJBContainer instance
        Throws:
        EJBException - Thrown if the container or application could not be successfully initialized.
      • createEJBContainer

        public static EJBContainer createEJBContainer(Map<?,?> properties)
        Create and initialize an embeddable EJB container with a set of configuration properties.
        Parameters:
        properties - Spec-defined and/or vendor-specific properties. The spec reserves the prefix "javax.ejb." for spec-defined properties.
        Returns:
        EJBContainer instance
        Throws:
        EJBException - Thrown if the container or application could not be successfully initialized.
      • getContext

        public abstract Context getContext()
        Retrieve a naming context for looking up references to session beans executing in the embeddable container.
        Returns:
        naming context
      • close

        public abstract void close()
        Shutdown an embeddable EJBContainer instance. Embeddable applications should always call close() in order to free up the resources associated with the embeddable container.
        Specified by:
        close in interface AutoCloseable

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/ejb/embeddable/EJBContainer.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com, EJBContainer (Java(TM) EE 7 Specification APIs)

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.