Package org.apache.activemq.web.config
Class JNDIConfiguration
- java.lang.Object
-
- org.apache.activemq.web.config.AbstractConfiguration
-
- org.apache.activemq.web.config.JNDIConfiguration
-
- All Implemented Interfaces:
WebConsoleConfiguration
public class JNDIConfiguration extends AbstractConfiguration
Configuration based on JNDI values.
-
-
Constructor Summary
Constructors Constructor Description JNDIConfiguration()
JNDIConfiguration(InitialContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionFactory
getConnectionFactory()
The connection factory to use for sending/receiving messages.String
getJmxPassword()
Password for the JMX-user.Collection<JMXServiceURL>
getJmxUrls()
The URL to the JMX connectors of the broker.String
getJmxUser()
The user that is used in case of authenticated JMX connections.protected String
getJndiString(String name)
-
Methods inherited from class org.apache.activemq.web.config.AbstractConfiguration
makeConnectionFactory, makeJmxUrls
-
-
-
-
Constructor Detail
-
JNDIConfiguration
public JNDIConfiguration() throws NamingException
- Throws:
NamingException
-
JNDIConfiguration
public JNDIConfiguration(InitialContext context)
-
-
Method Detail
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
Description copied from interface:WebConsoleConfiguration
The connection factory to use for sending/receiving messages.- Specified by:
getConnectionFactory
in interfaceWebConsoleConfiguration
- Overrides:
getConnectionFactory
in classAbstractConfiguration
- Returns:
- not
null
-
getJmxUrls
public Collection<JMXServiceURL> getJmxUrls()
Description copied from interface:WebConsoleConfiguration
The URL to the JMX connectors of the broker. The names of any failover (master-slave configuration) must also be specified.- Specified by:
getJmxUrls
in interfaceWebConsoleConfiguration
- Overrides:
getJmxUrls
in classAbstractConfiguration
- Returns:
- not
null
, must contain at least one entry
-
getJmxPassword
public String getJmxPassword()
Description copied from interface:WebConsoleConfiguration
Password for the JMX-user.- Specified by:
getJmxPassword
in interfaceWebConsoleConfiguration
- Overrides:
getJmxPassword
in classAbstractConfiguration
- Returns:
null
if no authentication- See Also:
WebConsoleConfiguration.getJmxUser()
-
getJmxUser
public String getJmxUser()
Description copied from interface:WebConsoleConfiguration
The user that is used in case of authenticated JMX connections. The user must be the same for all the brokers.- Specified by:
getJmxUser
in interfaceWebConsoleConfiguration
- Overrides:
getJmxUser
in classAbstractConfiguration
- Returns:
null
if no authentication should be used.
-
-