The Apache Web Service Invocation Framework (WSIF) allows you to perform web service invocations using a number of different implementation protocols like Axis, local Java, EJB, JMS, JCA CCI etc.

ActiveMQ provides a really simple to configure mechanism using the standard WSIF JMS metadata in the WSDL as you can see from this example..

<service name='CheckServiceAvailability'>
  <port name='CheckAvailabilityPort'  binding='tns:CheckAvailabilityJMSBinding'>

    <!-- ActiveMQ configuration -->
    <jms:address destinationStyle="queue"
      jndiDestinationName="dynamicQueues/test.org.apache.servicemix.example.wsif"
      jndiConnectionFactoryName="ConnectionFactory"
      initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory"
      jndiProviderURL="tcp://localhost:61626"/>
  </port>
</service>

The above is all thats required; then just drop the ActiveMQ jars on the classpath and away you go. No need to setup any JNDI contexts or configure anything else - the above will connect to the broker and do the right thing.

Graphic Design By Hiram