You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Kevan Miller <ke...@gmail.com> on 2008/03/04 07:05:52 UTC
Re: HTTP transport and ActiveMQ
On Feb 28, 2008, at 11:01 PM, Farr wrote:
>
> I am new to Geronimo and ActiveMQ and I am trying to setup JMS
> messaging over
> HTTP. Does anyone know where I can find an example of how to set
> this up in
> Germonimo? Or does anyone have any suggestions on where to start?
ActiveMQ HTTP protocol support in ActiveMQ 4.1.1 is in the activemq-
optional-4.1.1.jar. Geronimo does not include this jar in our
distributions.
If we did include the optional jar (or if you hacked the activemq-
optional classes into the activemq-core-4.1.1.jar file that we do
include), you could update your var/config/config.xml and add the
following new GBean to the activemq-broker module:
<gbean name="org.apache.geronimo.configs/activemq-broker/2.1/
car?ServiceModule=org.apache.geronimo.configs/activemq-broker/2.1/
car,j2eeType=GBean,name=ActiveMQ.http.default"
gbeanInfo="org.apache.geronimo.activemq.TransportConnectorGBeanImpl">
<attribute name="protocol">http</attribute>
<attribute name="host">${ServerHostname}</attribute>
<attribute name="port">58585</attribute>
<reference name="brokerService">
<pattern>
<groupId>org.apache.geronimo.configs</groupId>
<artifactId>activemq-broker</artifactId>
<version>2.1</version>
<type>car</type>
<name>ActiveMQ</name>
</pattern>
</reference>
</gbean>
Note that I haven't tested this with activemq-optional classes. I have
tested to the point of getting a "Transport scheme NOT recognized:
[http]" exception from ActiveMQ.
Or, you could also build G 2.1 from source (this is a cleaner
solution). Ignore the above and do something like the following:
pom.xml -- search for 'activemq-core' and create equivalent stanza for
activemq-optional
plugins/activemq/activemq-broker/pom.xml -- ditto
plugins/activemq/activemq-broker/src/main/plan/plan.xml -- duplicate
either the "ActiveMQ.tcp.default" or stomp GBean declaration and
create a new "ActiveMQ.http.default" equivalent
Build Geronimo.
That's all untested...
--kevan