I just committed support for 1.5 JCA connectors which is really only needed for our newly added support for ActiveMQ outbound connections :)

All you need to use this is declare a resource of type javax.jms.ConnectionFactory or if you like the old style interfaces javax.jms.QueueConnectionFactory or javax.jms.TopicConnectionFactory and you get a working AMQ connection to a local broker. For example the following use the @Resource annotation:

    @Resource
    private ConnectionFactory connectionFactory;
    @Resource
    private QueueConnectionFactory queueConnectionFactory;
    @Resource
    private TopicConnectionFactory topicConnectionFactory;

The following declares a enc resource ref:

      <resource-ref>
        <res-ref-name>ConnectionFactory</res-ref-name>
        <res-type>javax.jms.ConnectionFactory</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
      <resource-ref>
        <res-ref-name>QueueConnectionFactory</res-ref-name>
        <res-type>javax.jms.QueueConnectionFactory</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
      <resource-ref>
        <res-ref-name>TopicConnectionFactory</res-ref-name>
        <res-type>javax.jms.TopicConnectionFactory</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>


If you have any problems, let me know.

-dain

Reply via email to