Package com.swiftmq.swiftlet.jndi
Class JNDISwiftlet
- java.lang.Object
-
- com.swiftmq.swiftlet.Swiftlet
-
- com.swiftmq.swiftlet.jndi.JNDISwiftlet
-
public abstract class JNDISwiftlet extends Swiftlet
The JNDI Swiftlet provides an interface to the JNDI subsystem of SwiftMQ. It is implementation depending whether this points to an internal or external JNDI.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JNDI_QUEUE
static java.lang.String
JNDI_TOPIC
-
Fields inherited from class com.swiftmq.swiftlet.Swiftlet
STATE_ACTIVE, STATE_INACTIVE, STATE_STANDBY
-
-
Constructor Summary
Constructors Constructor Description JNDISwiftlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
deregisterJNDIObject(java.lang.String name)
Removes a registered JNDI object.abstract void
deregisterJNDIObjects(java.lang.Comparable comparable)
Removes all registered JNDI objects that matches the comparable.abstract void
deregisterJNDIQueueObject(java.lang.String queueName)
Removes all JNDI entries for a registered JMS Queue.abstract java.io.Serializable
getJNDIObject(java.lang.String name)
Returns the JNDI Object with that name.abstract void
registerJNDIObject(java.lang.String name, java.io.Serializable object)
Registers a JNDI object.-
Methods inherited from class com.swiftmq.swiftlet.Swiftlet
getName, getStartupTime, getState, isSnapshotAvailable, resume, setStartupTime, shutdown, standby, startup
-
-
-
-
Field Detail
-
JNDI_TOPIC
public static final java.lang.String JNDI_TOPIC
- See Also:
- Constant Field Values
-
JNDI_QUEUE
public static final java.lang.String JNDI_QUEUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerJNDIObject
public abstract void registerJNDIObject(java.lang.String name, java.io.Serializable object)
Registers a JNDI object. After registration, clients are able to lookup this object unter that name.- Parameters:
name
- lookup name.object
- the object.
-
deregisterJNDIObject
public abstract void deregisterJNDIObject(java.lang.String name)
Removes a registered JNDI object.- Parameters:
name
- lookup name.
-
deregisterJNDIObjects
public abstract void deregisterJNDIObjects(java.lang.Comparable comparable)
Removes all registered JNDI objects that matches the comparable.- Parameters:
comparable
- comparable.
-
deregisterJNDIQueueObject
public abstract void deregisterJNDIQueueObject(java.lang.String queueName)
Removes all JNDI entries for a registered JMS Queue. Say, there are 3 registrations in JNDI which are all pointing to the same queue name 'testqueue@router1', all registrations are deleted after calling this method with 'testqueue@router1'.- Parameters:
queueName
- queue name.
-
getJNDIObject
public abstract java.io.Serializable getJNDIObject(java.lang.String name)
Returns the JNDI Object with that name.- Parameters:
name
- Name- Returns:
- Object
-
-