| org.jboss.mq.sm.AbstractStateManager org.jboss.mq.sm.file.DynamicStateManager
DynamicStateManager | public class DynamicStateManager extends AbstractStateManager implements DynamicStateManagerMBean(Code) | | A state manager that allowed durable subscriptions to be dynamically
created if configured to support it. Otherwise backward compatible with
the old StateManager.
Backed by an XML file.
Example file format:
john
needle
DurableSubscriberExample
john
needle
myDurableSub
TestTopic...
author: Norbert Lataille author: Hiram Chirino author: Peter Antman version: $Revision: 57198 $ |
Inner Class :class DynamicDurableSubscription extends DurableSubscription | |
hasSecurityManager | boolean hasSecurityManager(Code) | | Do we have a security manager.
By setting this to false, we may emulate the old behaviour of
the state manager and let it autenticate connections.
|
DynamicStateManager | public DynamicStateManager()(Code) | | |
checkLoggedOnClientId | protected void checkLoggedOnClientId(String clientID) throws JMSException(Code) | | Check if the clientID belonges to a preconfigured user. If this
is the case, a InvalidClientIDException will be raised.
|
displayStateConfig | public String displayStateConfig() throws Exception(Code) | | Show the current configuration.
|
getDurableSubscription | protected DurableSubscription getDurableSubscription(DurableSubscriptionID sub) throws JMSException(Code) | | Search for a configurated durable subscription.
|
getDurableSubscriptionIdsForTopic | public Collection getDurableSubscriptionIdsForTopic(SpyTopic topic) throws JMSException(Code) | | |
getPreconfClientId | protected String getPreconfClientId(String login, String passwd) throws JMSException(Code) | | Return preconfigured client id. Only if hasSecurityManager is false will
a password be required to get the clientID and will the method throw
a JMSSecurityException if the clientID was not found.
|
getRoles | public String[] getRoles(String user) throws Exception(Code) | | We currently only support one Group type Roles. The role named
returned should typically be put into a Roles Group principal.
|
getStateFile | public String getStateFile()(Code) | | Get name of file.
java.lang.String |
hasSecurityManager | public boolean hasSecurityManager()(Code) | | |
removeDurableSubscription | protected void removeDurableSubscription(DurableSubscription ds) throws JMSException(Code) | | |
saveDurableSubscription | protected void saveDurableSubscription(DurableSubscription ds) throws JMSException(Code) | | |
setHasSecurityManager | public void setHasSecurityManager(boolean hasSecurityManager)(Code) | | |
setStateFile | public void setStateFile(String newStateFile)(Code) | | Set the name of the statefile.
Parameters: newStateFile - java.lang.String |
validatePassword | public boolean validatePassword(String user, String inputPassword) throws Exception(Code) | | Validate the user/password combination. A null inputPassword will
allways reurn false.
|
|
|