A connection and session are created for use by the new JMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer is created.
The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress.
In a Java SE environment or in the Java EE application client container:
In a Java EE web or EJB container, when there is an active JTA transaction in progress:
In the Java EE web or EJB container, when there is no active JTA transaction in progress:
The GLContext share
need not be associated with this GLDrawable and may be null if sharing of display lists and other objects is not desired. See the note in the overview documentation on context sharing.
Context
based on configuration supplied by a logical model assembly
@return a new instance context
@throws ContextCreationException if an error occurs creating the context
Creates and returns an initialized Velocity context.
A new context of class {@link ViewToolContext} is created andinitialized. @param request servlet request from client @param response servlet reponse to clientNon-default values for lifetime cannot always be honored by the underlying mechanism, thus applications should be prepared to call {@link GSSContext#getLifetime() getLifetime} on the returnedcontext.
@param peer the name of the target peer.
@param mech the Oid of the desired mechanism. Use null
to request the default mechanism.
@param myCred the credentials of the initiator. Usenull
to act as the default initiator principal.
@param lifetime the lifetime, in seconds, requested for thecontext. Use {@link GSSContext#INDEFINITE_LIFETIME GSSContext.INDEFINITE_LIFETIME} to request that the context have the maximum permitted lifetime. Use {@link GSSContext#DEFAULT_LIFETIME GSSContext.DEFAULT_LIFETIME} to request a default lifetime for thecontext.
@return an unestablished GSSContext
@see GSSContext
@throws GSSException containing the following major error codes: {@link GSSException#NO_CRED GSSException.NO_CRED}{@link GSSException#CREDENTIALS_EXPIRED GSSException.CREDENTIALS_EXPIRED}{@link GSSException#BAD_NAMETYPE GSSException.BAD_NAMETYPE}{@link GSSException#BAD_MECH GSSException.BAD_MECH}{@link GSSException#FAILURE GSSException.FAILURE}
The path specifies the root URI path for this context. The first character of path must be '/'.
The class overview describes how incoming request URIs are mapped to HttpContext instances.
@param path the root URI path to associate the context with
@param handler the handler to invoke for incoming requests.
@throws IllegalArgumentException if path is invalid, or if a contextalready exists for this path
@throws NullPointerException if either path, or handler are null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|