This documentation is for WSO2 Private PaaS 4.0.0. View documentation for the latest release.
Configuring jndi.properties - WSO2 Private PaaS 4.0.0 - WSO2 Documentation
                                                                                                                                                                                                                                                                                                                                                                                                           
||
Skip to end of metadata
Go to start of metadata

The following are the configurations in the  jndi.properties  files that correspond to the following Message Brokers (MB): Apache ActiveMQ and WSO2 Message Broker  .

Configuration
Properties

Relevant MBDescriptionMandatory/
Optional 
connectionfactoryNameActiveMQ,
WSO2 MB

The JNDI name the connection factory should use.

Mandatory

connectionfactory.topicConnectionfactoryWSO2 MBPoints to the running Message Broker. The value needs to be specified in the following format:
amqp://admin:admin@clientID/carbon?brokerlist='tcp://MB_HOSTNAME:MB_LISTEN_PORT'&reconnect='true' 
Mandatory
java.naming.provider.urlActiveMQ

The name of the environment property used to specify the location of the Message Broker (MB). The NamingContextFactory class uses this information to identify what MB server to connect to. The URL format is as follows:

tcp://MB_HOSTNAME:MB_LISTEN_PORT

 

Mandatory

java.naming.factory.initialActiveMQ,
WSO2 MB

The name of the environment property for specifying the initial context factory that needs to be used. The fully qualified class name of the factory class that will create an initial context should be specified as the value of this property; otherwise, an exception (javax.naming.NoInitialContextException ) will be thrown when the InitialContext object is created. The property values are as follows:
ActiveMQ - org.apache.activemq.jndi.ActiveMQInitialContextFactory
WSO2 MB - org.wso2.andes.jndi.PropertiesFileInitialContextFactory

Mandatory

topic.lb-statsActiveMQUsed to register the lb-stats topic in MB.Optional
topic.instance-statsActiveMQUsed to register the instance-stats topic in MBOptional
topic.summarized-health-statsActiveMQUsed to register the summarized-health-stats topic in MB.Optional
  • No labels