Package org.apache.activemq.web.config
Class AbstractConfiguration
java.lang.Object
org.apache.activemq.web.config.AbstractConfiguration
- All Implemented Interfaces:
WebConsoleConfiguration
- Direct Known Subclasses:
JNDIConfiguration,SystemPropertiesConfiguration
Base class for configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactoryThe connection factory to use for sending/receiving messages.Password for the JMX-user.The URL to the JMX connectors of the broker.The user that is used in case of authenticated JMX connections.protected jakarta.jms.ConnectionFactorymakeConnectionFactory(String jmsUrl, String jmsUser, String jmsPassword) Creates the ActiveMQ-ConnectionFactory.protected Collection<JMXServiceURL>makeJmxUrls(String jmxUrls) Splits the JMX-Url string into a series of JMSServiceURLs.
-
Constructor Details
-
AbstractConfiguration
public AbstractConfiguration()
-
-
Method Details
-
getConnectionFactory
public jakarta.jms.ConnectionFactory getConnectionFactory()Description copied from interface:WebConsoleConfigurationThe connection factory to use for sending/receiving messages.- Specified by:
getConnectionFactoryin interfaceWebConsoleConfiguration- Returns:
- not
null
-
getJmxPassword
Description copied from interface:WebConsoleConfigurationPassword for the JMX-user.- Specified by:
getJmxPasswordin interfaceWebConsoleConfiguration- Returns:
nullif no authentication- See Also:
-
getJmxUrls
Description copied from interface:WebConsoleConfigurationThe URL to the JMX connectors of the broker. The names of any failover (master-slave configuration) must also be specified.- Specified by:
getJmxUrlsin interfaceWebConsoleConfiguration- Returns:
- not
null, must contain at least one entry
-
getJmxUser
Description copied from interface:WebConsoleConfigurationThe user that is used in case of authenticated JMX connections. The user must be the same for all the brokers.- Specified by:
getJmxUserin interfaceWebConsoleConfiguration- Returns:
nullif no authentication should be used.
-
makeConnectionFactory
protected jakarta.jms.ConnectionFactory makeConnectionFactory(String jmsUrl, String jmsUser, String jmsPassword) Creates the ActiveMQ-ConnectionFactory.- Parameters:
jmsUrl- notnulljmsUser-nullif no authenticationjmsPassword-nullis ok- Returns:
- not
null
-
makeJmxUrls
Splits the JMX-Url string into a series of JMSServiceURLs.- Parameters:
jmxUrls- the JMX-url, multiple URLs are separated by commas.- Returns:
- not
null, contains at least one element.
-