|
| Home > Apache Geronimo v2.2 > Documentation > Configuring and administering > Configuring and administering the Apache Geronimo Server > Configuring the JMS server |
To configure the JMS Server, select JMS Server on the Console Navigation menu on the left hand side. You will get a list of JMS brokers available in the server and their status in the JMS Server Manager portlet. You will be also presented with the JMS Network Listeners portlet that displays all JMS network connectors. The following figures illustrate these two portlets and options.
To add a new JMS broker, click on the link Add JMS Broker. In the resulting page, you will be provided with a template for the ActiveMQ broker. The following figure illustrates the template:
It contains some customized configurations by Geronimo. It is strongly recommended that you add your own configurations based on the template file, instead of copying it from elsewhere.
${activemq.brokerName}
<!--
The transport connectors expose ActiveMQ over a given protocol to
clients and other brokers. For more information, see:
http://activemq.apache.org/configuring-transports.html
-->
<transportConnectors>
<!--
<transportConnector name="openwire" uri="tcp://localhost:${* + ${PortOffset}}" />
<transportConnector name="openwire2" uri="tcp://localhost:${* + ${PortOffset}}" discoveryUri="multicast://default"/>
<transportConnector name="ssl" uri="ssl://localhost:${* + ${PortOffset}}"/>
<transportConnector name="stomp" uri="stomp://localhost:${* + ${PortOffset}}"/>
-->
</transportConnectors>
After you add the connector, the section should be something like:
<transportConnector name="openwire" uri="tcp://localhost:${60000 + ${PortOffset}}"/>
Some files and folders are created after the creation of a new broker:
where brokerName is the name you specified for the new broker.
Openwire is the default transport for ActiveMQ. In Geronimo, you can also use SSL transport to clients to connect to the broker using SSL. Follow the steps below to enable a SSL transport.
<transportConnector name="ssl" uri="ssl://localhost:${* + ${PortOffset}}"/>
<sslContext> <sslContext keyStore="file:${activemq.data}/test.ks" keyStorePassword="secret" trustStore="file:${activemq.data}/test.ks" trustStorePassword="secret"/> </sslContext>
Details on how to configure connection factories, queues, topics and destinations are covered in the section Configuring JMS resources.
|
|
Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |