public class AQjmsDestinationFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory
javax.naming.spi.ObjectFactory. Factory class for producing JMS destination objects| Constructor and Description |
|---|
AQjmsDestinationFactory()
Creates an
AQjmsDestinationFactory object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
Creates a destination.
|
public AQjmsDestinationFactory()
AQjmsDestinationFactory object.public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws JMSException
name and nameCtx and table attributes obtained using environment.getObjectInstance in interface javax.naming.spi.ObjectFactoryobj - a javax.naming.Reference indicating the destination classname - the location containing the destination attributesnameCtx - a javax.naming.directory.DirContext containing the following destination attributes at the above location:
AQjmsConstants.LDAP_OWN_ATTRAQjmsConstants.LDAP_NAM_ATTRAQjmsConstants.LDAP_PTR_ATTRAQjmsConstants.LDAP_GEN_ATTR:
"queuetype" (AQQueueProperty.NORMAL_QUEUE or AQQueueProperty.EXCEPTION_QUEUE)"maxretries""retryinterval""rentention" (retention time)environment - used to create an InitialDirContext containing the following table attributes at the location indicated by the above AQjmsConstants.LDAP_PTR_ATTR attribute:
AQjmsConstants.LDAP_NAM_ATTRAQjmsConstants.LDAP_GEN_ATTR:
"payloadtype""multiconsumers" (true for a topic, false for a queue)null if:
obj is invalid,name in the provided nameCtx fails,environment fails, orLDAP_*_ATTR attributes are not foundJMSException - if a destination is not created for any reason other than those listed above (which result in a null return value).