Package org.glassfish.jms.injection
Class AbstractJMSContextManager
- java.lang.Object
-
- org.glassfish.jms.injection.AbstractJMSContextManager
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RequestedJMSContextManager,TransactedJMSContextManager
public abstract class AbstractJMSContextManager extends Object implements Serializable
This bean has a map to store JMSContext instances based on the injection point, that makes sure in one class, the injected JMSContext beans of different injection point will not share the same request/trasaction scoped JMSContext instance in a request/transaction.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,JMSContextEntry>contexts
-
Constructor Summary
Constructors Constructor Description AbstractJMSContextManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcleanup()protected jakarta.jms.JMSContextcreateContext(String ipId, JMSContextMetadata metadata, jakarta.jms.ConnectionFactory connectionFactory)jakarta.jms.JMSContextgetContext(String id)jakarta.jms.JMSContextgetContext(String ipId, String id, JMSContextMetadata metadata, jakarta.jms.ConnectionFactory connectionFactory)abstract StringgetType()
-
-
-
Field Detail
-
contexts
protected final Map<String,JMSContextEntry> contexts
-
-
Method Detail
-
createContext
protected jakarta.jms.JMSContext createContext(String ipId, JMSContextMetadata metadata, jakarta.jms.ConnectionFactory connectionFactory)
-
getContext
public jakarta.jms.JMSContext getContext(String ipId, String id, JMSContextMetadata metadata, jakarta.jms.ConnectionFactory connectionFactory)
-
getContext
public jakarta.jms.JMSContext getContext(String id)
-
cleanup
@PreDestroy public void cleanup()
-
getType
public abstract String getType()
-
-