Alright. BTW, you also need to define a Resource Manager.

In this repo is another set of examples:
https://github.com/FuseByExample/camel-persistence-part2/blob/jboss-fuse-6.2/route-one-tx-manager/src/main/resources/OSGI-INF/blueprint/route-one-tx-manager.xml

Regards,
Raúl.
On 30 Oct 2015 19:24, "Christian Schneider" <ch...@die-schneider.net> wrote:

> Hi Raul,
>
> thanks for the smx blueprint. The only difference I found was to use
> org.apache.activemq.jms.pool.JcaPooledConnectionFactory instead of the
> XaPooledConnectionFactory.
> I remember that I used this one for the tests in CXF JMS and it is the
> right one I think. So that should be a useful change.
>
> I am pretty sure that I do not need the XAConnectionFactory on the service
> level. If you look at the SMX blueprint you see that a
> org.apache.activemq.ActiveMQXAConnectionFactory is used internally and
> injected into the JcaPooledConnectionFactory but this is then published
> using the regular ConnectionFactory interface. As far as I know this is
> correct and is also the way you do it for a db XA DataSource.
>
> My logging already showed that the XA part of my demo should be correct
> now. So I think the only missing part is the redelivery. I will ask about
> it on the ActiveMQ list.
>
> Christian
>
> On 30.10.2015 18:37, Raul Kripalani wrote:
>
>> Hey Christian,
>>
>> I had a look at your code and I think you need to grab the
>> XaConnectionFactory from the OSGi Service Registry (or create one).
>>
>> Not sure if you're using ServiceMix or not, but here is how SMX makes
>> these
>> services available in the container:
>>
>> https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=blob;f=activemq/activemq-service/src/main/resources/OSGI-INF/blueprint/activemq-service.xml
>> .
>>
>> Regards,
>>
>> *Raúl Kripalani*
>>
>>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>

Reply via email to