Anyone have experience with alternative JMS providers?

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Anyone have experience with alternative JMS providers?

Bjorn Danielsson
Does anyone have a recipe for using Apache Qpid or JORAM
with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
The configuration I have in mind is a container-managed
MDB that receives messages from an external broker.

--
Björn Danielsson
Cuspy Code AB
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Romain Manni-Bucau
Not tried the one you speak about but if they provide a resource adapter it
should (or almost) work out of the box

- Romain


2012/6/26 Bjorn Danielsson <[hidden email]>

> Does anyone have a recipe for using Apache Qpid or JORAM
> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
> The configuration I have in mind is a container-managed
> MDB that receives messages from an external broker.
>
> --
> Björn Danielsson
> Cuspy Code AB
>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

David Blevins-2
In reply to this post by Bjorn Danielsson

On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:

> Does anyone have a recipe for using Apache Qpid or JORAM
> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
> The configuration I have in mind is a container-managed
> MDB that receives messages from an external broker.

Created this doc for you:

  http://openejb.apache.org/changing-jms-implementations.html

It's just an hour old, so may not fully answer the question. :)

Between the two of us I'm sure we can perfect it.  You can use the little blue pencil icon in the upper right to edit.  Feel free to tweak it as much as you like and feel free to keep asking questions.

One of the areas we really need to document better.  The last time this came up it didn't go beyond the mailing list, so hopefully this time we can capture the steps more permanently :)

Thanks for the question!


-David



Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Bjorn Danielsson
Thanks!

Here is my first question (and stumbling block). I tried the second
method on the wiki page, using the Generic JMS Resource Adapter to
integrate an Apache Qpid client. But TomEE complained that it didn't
find the provider:

Jun 27, 2012 2:05:58 PM org.apache.openejb.config.ConfigurationFactory configureService
SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
org.apache.openejb.config.NoSuchProviderException: Cannot find the ServiceProvider id com.example in the service-jar.xml at com.example. Check that your OpenEJB configuration file is point to the right ServiceProvider id."
        at org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
        at org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
        at org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
        at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
[...]

This is my resource declaration in tomee.xml:

<Resource id="My Other JMS Resource Adapter" type="GenericJMSRA" provider="com.example">
</Resource>

And this is the jar I put in $CATALINA_HOME/lib to package service-jar.xml:

# jar tvf tomee-qpid.jar
     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
  2395 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/service-jar.xml

Why didn't it work?

Version info:

apache-tomee-1.1.0-20120627.041358-42-plus
genericjmsra/v2.1a

No webapps deployed, just a fresh install, easy to replicate.

--
Björn Danielsson
Cuspy Code AB


David Blevins <[hidden email]> wrote:

> On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
>
>> Does anyone have a recipe for using Apache Qpid or JORAM
>> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
>> The configuration I have in mind is a container-managed
>> MDB that receives messages from an external broker.
>
> Created this doc for you:
>
>   http://openejb.apache.org/changing-jms-implementations.html
>
> It's just an hour old, so may not fully answer the question. :)
>
> Between the two of us I'm sure we can perfect it.  You can use the little blue pencil icon in the upper right to edit.  Feel free to tweak it as much as you like and feel free to keep asking questions.
>
> One of the areas we really need to document better.  The last time this came up it didn't go beyond the mailing list, so hopefully this time we can capture the steps more permanently :)
>
> Thanks for the question!
>
>
> -David
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Romain Manni-Bucau
did you put it in tomee/lib?

- Romain


2012/6/27 Bjorn Danielsson <[hidden email]>

> Thanks!
>
> Here is my first question (and stumbling block). I tried the second
> method on the wiki page, using the Generic JMS Resource Adapter to
> integrate an Apache Qpid client. But TomEE complained that it didn't
> find the provider:
>
> Jun 27, 2012 2:05:58 PM org.apache.openejb.config.ConfigurationFactory
> configureService
> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
> org.apache.openejb.config.NoSuchProviderException: Cannot find the
> ServiceProvider id com.example in the service-jar.xml at com.example. Check
> that your OpenEJB configuration file is point to the right ServiceProvider
> id."
>        at
> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
>        at
> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
>        at
> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
>        at
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
> [...]
>
> This is my resource declaration in tomee.xml:
>
> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
> provider="com.example">
> </Resource>
>
> And this is the jar I put in $CATALINA_HOME/lib to package service-jar.xml:
>
> # jar tvf tomee-qpid.jar
>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
>  2395 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/service-jar.xml
>
> Why didn't it work?
>
> Version info:
>
> apache-tomee-1.1.0-20120627.041358-42-plus
> genericjmsra/v2.1a
>
> No webapps deployed, just a fresh install, easy to replicate.
>
> --
> Björn Danielsson
> Cuspy Code AB
>
>
> David Blevins <[hidden email]> wrote:
> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
> >
> >> Does anyone have a recipe for using Apache Qpid or JORAM
> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
> >> The configuration I have in mind is a container-managed
> >> MDB that receives messages from an external broker.
> >
> > Created this doc for you:
> >
> >   http://openejb.apache.org/changing-jms-implementations.html
> >
> > It's just an hour old, so may not fully answer the question. :)
> >
> > Between the two of us I'm sure we can perfect it.  You can use the
> little blue pencil icon in the upper right to edit.  Feel free to tweak it
> as much as you like and feel free to keep asking questions.
> >
> > One of the areas we really need to document better.  The last time this
> came up it didn't go beyond the mailing list, so hopefully this time we can
> capture the steps more permanently :)
> >
> > Thanks for the question!
> >
> >
> > -David
>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Bjorn Danielsson
Yes, I did. I think loading-by-provider may be broken, because I
peeked at the TomEE source and found that if the provider is null
it will find by type. So I made it work by removing the provider
attribute in tomee.xml, and giving the full classname as the type:

<Resource id="My Other JMS Resource Adapter" type="com.sun.genericra.GenericJMSRA">
</Resource>

And I made the corresponding name change in service-jar.xml:

    types="com.sun.genericra.GenericJMSRA"

instead of

    types="GenericJMSRA"

Without this it wouldn't find the class. Maybe there is some
other way to make the short type-name work, but these changes
were enough to get the resource created.

Then I deployed my webapp and got some new errors, but I haven't
really started configuring the adapter yet, so I'll get back
here again when I have tried that.

--
Björn Danielsson
Cuspy Code AB


Romain Manni-Bucau <[hidden email]> wrote:

> did you put it in tomee/lib?
>
> - Romain
>
>
> 2012/6/27 Bjorn Danielsson <[hidden email]>
>
>> Thanks!
>>
>> Here is my first question (and stumbling block). I tried the second
>> method on the wiki page, using the Generic JMS Resource Adapter to
>> integrate an Apache Qpid client. But TomEE complained that it didn't
>> find the provider:
>>
>> Jun 27, 2012 2:05:58 PM org.apache.openejb.config.ConfigurationFactory
>> configureService
>> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
>> org.apache.openejb.config.NoSuchProviderException: Cannot find the
>> ServiceProvider id com.example in the service-jar.xml at com.example. Check
>> that your OpenEJB configuration file is point to the right ServiceProvider
>> id."
>>        at
>> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
>>        at
>> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
>>        at
>> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
>>        at
>> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
>> [...]
>>
>> This is my resource declaration in tomee.xml:
>>
>> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
>> provider="com.example">
>> </Resource>
>>
>> And this is the jar I put in $CATALINA_HOME/lib to package service-jar.xml:
>>
>> # jar tvf tomee-qpid.jar
>>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
>>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
>>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
>>  2395 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/service-jar.xml
>>
>> Why didn't it work?
>>
>> Version info:
>>
>> apache-tomee-1.1.0-20120627.041358-42-plus
>> genericjmsra/v2.1a
>>
>> No webapps deployed, just a fresh install, easy to replicate.
>>
>> --
>> Björn Danielsson
>> Cuspy Code AB
>>
>>
>> David Blevins <[hidden email]> wrote:
>> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
>> >
>> >> Does anyone have a recipe for using Apache Qpid or JORAM
>> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
>> >> The configuration I have in mind is a container-managed
>> >> MDB that receives messages from an external broker.
>> >
>> > Created this doc for you:
>> >
>> >   http://openejb.apache.org/changing-jms-implementations.html
>> >
>> > It's just an hour old, so may not fully answer the question. :)
>> >
>> > Between the two of us I'm sure we can perfect it.  You can use the
>> little blue pencil icon in the upper right to edit.  Feel free to tweak it
>> as much as you like and feel free to keep asking questions.
>> >
>> > One of the areas we really need to document better.  The last time this
>> came up it didn't go beyond the mailing list, so hopefully this time we can
>> capture the steps more permanently :)
>> >
>> > Thanks for the question!
>> >
>> >
>> > -David
>>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Romain Manni-Bucau
as you specified type, specufy the provider:

provider="com.example:myProvId"

- Romain


2012/6/27 Bjorn Danielsson <[hidden email]>

> Yes, I did. I think loading-by-provider may be broken, because I
> peeked at the TomEE source and found that if the provider is null
> it will find by type. So I made it work by removing the provider
> attribute in tomee.xml, and giving the full classname as the type:
>
> <Resource id="My Other JMS Resource Adapter"
> type="com.sun.genericra.GenericJMSRA">
> </Resource>
>
> And I made the corresponding name change in service-jar.xml:
>
>    types="com.sun.genericra.GenericJMSRA"
>
> instead of
>
>    types="GenericJMSRA"
>
> Without this it wouldn't find the class. Maybe there is some
> other way to make the short type-name work, but these changes
> were enough to get the resource created.
>
> Then I deployed my webapp and got some new errors, but I haven't
> really started configuring the adapter yet, so I'll get back
> here again when I have tried that.
>
> --
> Björn Danielsson
> Cuspy Code AB
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > did you put it in tomee/lib?
> >
> > - Romain
> >
> >
> > 2012/6/27 Bjorn Danielsson <[hidden email]>
> >
> >> Thanks!
> >>
> >> Here is my first question (and stumbling block). I tried the second
> >> method on the wiki page, using the Generic JMS Resource Adapter to
> >> integrate an Apache Qpid client. But TomEE complained that it didn't
> >> find the provider:
> >>
> >> Jun 27, 2012 2:05:58 PM org.apache.openejb.config.ConfigurationFactory
> >> configureService
> >> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
> >> org.apache.openejb.config.NoSuchProviderException: Cannot find the
> >> ServiceProvider id com.example in the service-jar.xml at com.example.
> Check
> >> that your OpenEJB configuration file is point to the right
> ServiceProvider
> >> id."
> >>        at
> >>
> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
> >>        at
> >>
> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
> >>        at
> >>
> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
> >>        at
> >>
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
> >> [...]
> >>
> >> This is my resource declaration in tomee.xml:
> >>
> >> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
> >> provider="com.example">
> >> </Resource>
> >>
> >> And this is the jar I put in $CATALINA_HOME/lib to package
> service-jar.xml:
> >>
> >> # jar tvf tomee-qpid.jar
> >>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
> >>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
> >>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
> >>  2395 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/service-jar.xml
> >>
> >> Why didn't it work?
> >>
> >> Version info:
> >>
> >> apache-tomee-1.1.0-20120627.041358-42-plus
> >> genericjmsra/v2.1a
> >>
> >> No webapps deployed, just a fresh install, easy to replicate.
> >>
> >> --
> >> Björn Danielsson
> >> Cuspy Code AB
> >>
> >>
> >> David Blevins <[hidden email]> wrote:
> >> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
> >> >
> >> >> Does anyone have a recipe for using Apache Qpid or JORAM
> >> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
> >> >> The configuration I have in mind is a container-managed
> >> >> MDB that receives messages from an external broker.
> >> >
> >> > Created this doc for you:
> >> >
> >> >   http://openejb.apache.org/changing-jms-implementations.html
> >> >
> >> > It's just an hour old, so may not fully answer the question. :)
> >> >
> >> > Between the two of us I'm sure we can perfect it.  You can use the
> >> little blue pencil icon in the upper right to edit.  Feel free to tweak
> it
> >> as much as you like and feel free to keep asking questions.
> >> >
> >> > One of the areas we really need to document better.  The last time
> this
> >> came up it didn't go beyond the mailing list, so hopefully this time we
> can
> >> capture the steps more permanently :)
> >> >
> >> > Thanks for the question!
> >> >
> >> >
> >> > -David
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Bjorn Danielsson
Aha, that worked, and the short type-name works now. Thanks!

Someone should update the wiki page to say

    provider="org.superbiz:genericra"

instead of

    provider="org.superbiz"

I can't edit, I got a login prompt for ASF Committers when I tried.

--
Björn Danielsson
Cuspy Code AB


Romain Manni-Bucau <[hidden email]> wrote:

> as you specified type, specufy the provider:
>
> provider="com.example:myProvId"
>
> - Romain
>
>
> 2012/6/27 Bjorn Danielsson <[hidden email]>
>
>> Yes, I did. I think loading-by-provider may be broken, because I
>> peeked at the TomEE source and found that if the provider is null
>> it will find by type. So I made it work by removing the provider
>> attribute in tomee.xml, and giving the full classname as the type:
>>
>> <Resource id="My Other JMS Resource Adapter"
>> type="com.sun.genericra.GenericJMSRA">
>> </Resource>
>>
>> And I made the corresponding name change in service-jar.xml:
>>
>>    types="com.sun.genericra.GenericJMSRA"
>>
>> instead of
>>
>>    types="GenericJMSRA"
>>
>> Without this it wouldn't find the class. Maybe there is some
>> other way to make the short type-name work, but these changes
>> were enough to get the resource created.
>>
>> Then I deployed my webapp and got some new errors, but I haven't
>> really started configuring the adapter yet, so I'll get back
>> here again when I have tried that.
>>
>> --
>> Björn Danielsson
>> Cuspy Code AB
>>
>>
>> Romain Manni-Bucau <[hidden email]> wrote:
>> > did you put it in tomee/lib?
>> >
>> > - Romain
>> >
>> >
>> > 2012/6/27 Bjorn Danielsson <[hidden email]>
>> >
>> >> Thanks!
>> >>
>> >> Here is my first question (and stumbling block). I tried the second
>> >> method on the wiki page, using the Generic JMS Resource Adapter to
>> >> integrate an Apache Qpid client. But TomEE complained that it didn't
>> >> find the provider:
>> >>
>> >> Jun 27, 2012 2:05:58 PM org.apache.openejb.config.ConfigurationFactory
>> >> configureService
>> >> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
>> >> org.apache.openejb.config.NoSuchProviderException: Cannot find the
>> >> ServiceProvider id com.example in the service-jar.xml at com.example.
>> Check
>> >> that your OpenEJB configuration file is point to the right
>> ServiceProvider
>> >> id."
>> >>        at
>> >>
>> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
>> >>        at
>> >>
>> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
>> >>        at
>> >>
>> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
>> >>        at
>> >>
>> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
>> >> [...]
>> >>
>> >> This is my resource declaration in tomee.xml:
>> >>
>> >> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
>> >> provider="com.example">
>> >> </Resource>
>> >>
>> >> And this is the jar I put in $CATALINA_HOME/lib to package
>> service-jar.xml:
>> >>
>> >> # jar tvf tomee-qpid.jar
>> >>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
>> >>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
>> >>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
>> >>  2395 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/service-jar.xml
>> >>
>> >> Why didn't it work?
>> >>
>> >> Version info:
>> >>
>> >> apache-tomee-1.1.0-20120627.041358-42-plus
>> >> genericjmsra/v2.1a
>> >>
>> >> No webapps deployed, just a fresh install, easy to replicate.
>> >>
>> >> --
>> >> Björn Danielsson
>> >> Cuspy Code AB
>> >>
>> >>
>> >> David Blevins <[hidden email]> wrote:
>> >> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
>> >> >
>> >> >> Does anyone have a recipe for using Apache Qpid or JORAM
>> >> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
>> >> >> The configuration I have in mind is a container-managed
>> >> >> MDB that receives messages from an external broker.
>> >> >
>> >> > Created this doc for you:
>> >> >
>> >> >   http://openejb.apache.org/changing-jms-implementations.html
>> >> >
>> >> > It's just an hour old, so may not fully answer the question. :)
>> >> >
>> >> > Between the two of us I'm sure we can perfect it.  You can use the
>> >> little blue pencil icon in the upper right to edit.  Feel free to tweak
>> it
>> >> as much as you like and feel free to keep asking questions.
>> >> >
>> >> > One of the areas we really need to document better.  The last time
>> this
>> >> came up it didn't go beyond the mailing list, so hopefully this time we
>> can
>> >> capture the steps more permanently :)
>> >> >
>> >> > Thanks for the question!
>> >> >
>> >> >
>> >> > -David
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Romain Manni-Bucau
should be sync soon

- Romain


2012/6/27 Bjorn Danielsson <[hidden email]>

> Aha, that worked, and the short type-name works now. Thanks!
>
> Someone should update the wiki page to say
>
>    provider="org.superbiz:genericra"
>
> instead of
>
>    provider="org.superbiz"
>
> I can't edit, I got a login prompt for ASF Committers when I tried.
>
> --
> Björn Danielsson
> Cuspy Code AB
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > as you specified type, specufy the provider:
> >
> > provider="com.example:myProvId"
> >
> > - Romain
> >
> >
> > 2012/6/27 Bjorn Danielsson <[hidden email]>
> >
> >> Yes, I did. I think loading-by-provider may be broken, because I
> >> peeked at the TomEE source and found that if the provider is null
> >> it will find by type. So I made it work by removing the provider
> >> attribute in tomee.xml, and giving the full classname as the type:
> >>
> >> <Resource id="My Other JMS Resource Adapter"
> >> type="com.sun.genericra.GenericJMSRA">
> >> </Resource>
> >>
> >> And I made the corresponding name change in service-jar.xml:
> >>
> >>    types="com.sun.genericra.GenericJMSRA"
> >>
> >> instead of
> >>
> >>    types="GenericJMSRA"
> >>
> >> Without this it wouldn't find the class. Maybe there is some
> >> other way to make the short type-name work, but these changes
> >> were enough to get the resource created.
> >>
> >> Then I deployed my webapp and got some new errors, but I haven't
> >> really started configuring the adapter yet, so I'll get back
> >> here again when I have tried that.
> >>
> >> --
> >> Björn Danielsson
> >> Cuspy Code AB
> >>
> >>
> >> Romain Manni-Bucau <[hidden email]> wrote:
> >> > did you put it in tomee/lib?
> >> >
> >> > - Romain
> >> >
> >> >
> >> > 2012/6/27 Bjorn Danielsson <[hidden email]>
> >> >
> >> >> Thanks!
> >> >>
> >> >> Here is my first question (and stumbling block). I tried the second
> >> >> method on the wiki page, using the Generic JMS Resource Adapter to
> >> >> integrate an Apache Qpid client. But TomEE complained that it didn't
> >> >> find the provider:
> >> >>
> >> >> Jun 27, 2012 2:05:58 PM
> org.apache.openejb.config.ConfigurationFactory
> >> >> configureService
> >> >> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
> >> >> org.apache.openejb.config.NoSuchProviderException: Cannot find the
> >> >> ServiceProvider id com.example in the service-jar.xml at com.example.
> >> Check
> >> >> that your OpenEJB configuration file is point to the right
> >> ServiceProvider
> >> >> id."
> >> >>        at
> >> >>
> >>
> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
> >> >>        at
> >> >>
> >>
> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
> >> >>        at
> >> >>
> >>
> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
> >> >>        at
> >> >>
> >>
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
> >> >> [...]
> >> >>
> >> >> This is my resource declaration in tomee.xml:
> >> >>
> >> >> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
> >> >> provider="com.example">
> >> >> </Resource>
> >> >>
> >> >> And this is the jar I put in $CATALINA_HOME/lib to package
> >> service-jar.xml:
> >> >>
> >> >> # jar tvf tomee-qpid.jar
> >> >>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
> >> >>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
> >> >>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
> >> >>  2395 Wed Jun 27 12:29:38 CEST 2012
> META-INF/com.example/service-jar.xml
> >> >>
> >> >> Why didn't it work?
> >> >>
> >> >> Version info:
> >> >>
> >> >> apache-tomee-1.1.0-20120627.041358-42-plus
> >> >> genericjmsra/v2.1a
> >> >>
> >> >> No webapps deployed, just a fresh install, easy to replicate.
> >> >>
> >> >> --
> >> >> Björn Danielsson
> >> >> Cuspy Code AB
> >> >>
> >> >>
> >> >> David Blevins <[hidden email]> wrote:
> >> >> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
> >> >> >
> >> >> >> Does anyone have a recipe for using Apache Qpid or JORAM
> >> >> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
> >> >> >> The configuration I have in mind is a container-managed
> >> >> >> MDB that receives messages from an external broker.
> >> >> >
> >> >> > Created this doc for you:
> >> >> >
> >> >> >   http://openejb.apache.org/changing-jms-implementations.html
> >> >> >
> >> >> > It's just an hour old, so may not fully answer the question. :)
> >> >> >
> >> >> > Between the two of us I'm sure we can perfect it.  You can use the
> >> >> little blue pencil icon in the upper right to edit.  Feel free to
> tweak
> >> it
> >> >> as much as you like and feel free to keep asking questions.
> >> >> >
> >> >> > One of the areas we really need to document better.  The last time
> >> this
> >> >> came up it didn't go beyond the mailing list, so hopefully this time
> we
> >> can
> >> >> capture the steps more permanently :)
> >> >> >
> >> >> > Thanks for the question!
> >> >> >
> >> >> >
> >> >> > -David
> >> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Bjorn Danielsson-2
I tried editing again after posting that (I'm a stubborn guy :)
and now I could edit with login...

--
Björn Danielsson  <[hidden email]>


Romain Manni-Bucau <[hidden email]> wrote:

> should be sync soon
>
> - Romain
>
>
> 2012/6/27 Bjorn Danielsson <[hidden email]>
>
>> Aha, that worked, and the short type-name works now. Thanks!
>>
>> Someone should update the wiki page to say
>>
>>    provider="org.superbiz:genericra"
>>
>> instead of
>>
>>    provider="org.superbiz"
>>
>> I can't edit, I got a login prompt for ASF Committers when I tried.
>>
>> --
>> Björn Danielsson
>> Cuspy Code AB
>>
>>
>> Romain Manni-Bucau <[hidden email]> wrote:
>> > as you specified type, specufy the provider:
>> >
>> > provider="com.example:myProvId"
>> >
>> > - Romain
>> >
>> >
>> > 2012/6/27 Bjorn Danielsson <[hidden email]>
>> >
>> >> Yes, I did. I think loading-by-provider may be broken, because I
>> >> peeked at the TomEE source and found that if the provider is null
>> >> it will find by type. So I made it work by removing the provider
>> >> attribute in tomee.xml, and giving the full classname as the type:
>> >>
>> >> <Resource id="My Other JMS Resource Adapter"
>> >> type="com.sun.genericra.GenericJMSRA">
>> >> </Resource>
>> >>
>> >> And I made the corresponding name change in service-jar.xml:
>> >>
>> >>    types="com.sun.genericra.GenericJMSRA"
>> >>
>> >> instead of
>> >>
>> >>    types="GenericJMSRA"
>> >>
>> >> Without this it wouldn't find the class. Maybe there is some
>> >> other way to make the short type-name work, but these changes
>> >> were enough to get the resource created.
>> >>
>> >> Then I deployed my webapp and got some new errors, but I haven't
>> >> really started configuring the adapter yet, so I'll get back
>> >> here again when I have tried that.
>> >>
>> >> --
>> >> Björn Danielsson
>> >> Cuspy Code AB
>> >>
>> >>
>> >> Romain Manni-Bucau <[hidden email]> wrote:
>> >> > did you put it in tomee/lib?
>> >> >
>> >> > - Romain
>> >> >
>> >> >
>> >> > 2012/6/27 Bjorn Danielsson <[hidden email]>
>> >> >
>> >> >> Thanks!
>> >> >>
>> >> >> Here is my first question (and stumbling block). I tried the second
>> >> >> method on the wiki page, using the Generic JMS Resource Adapter to
>> >> >> integrate an Apache Qpid client. But TomEE complained that it didn't
>> >> >> find the provider:
>> >> >>
>> >> >> Jun 27, 2012 2:05:58 PM
>> org.apache.openejb.config.ConfigurationFactory
>> >> >> configureService
>> >> >> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
>> >> >> org.apache.openejb.config.NoSuchProviderException: Cannot find the
>> >> >> ServiceProvider id com.example in the service-jar.xml at com.example.
>> >> Check
>> >> >> that your OpenEJB configuration file is point to the right
>> >> ServiceProvider
>> >> >> id."
>> >> >>        at
>> >> >>
>> >>
>> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
>> >> >>        at
>> >> >>
>> >>
>> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
>> >> >>        at
>> >> >>
>> >>
>> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
>> >> >>        at
>> >> >>
>> >>
>> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
>> >> >> [...]
>> >> >>
>> >> >> This is my resource declaration in tomee.xml:
>> >> >>
>> >> >> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
>> >> >> provider="com.example">
>> >> >> </Resource>
>> >> >>
>> >> >> And this is the jar I put in $CATALINA_HOME/lib to package
>> >> service-jar.xml:
>> >> >>
>> >> >> # jar tvf tomee-qpid.jar
>> >> >>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
>> >> >>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
>> >> >>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
>> >> >>  2395 Wed Jun 27 12:29:38 CEST 2012
>> META-INF/com.example/service-jar.xml
>> >> >>
>> >> >> Why didn't it work?
>> >> >>
>> >> >> Version info:
>> >> >>
>> >> >> apache-tomee-1.1.0-20120627.041358-42-plus
>> >> >> genericjmsra/v2.1a
>> >> >>
>> >> >> No webapps deployed, just a fresh install, easy to replicate.
>> >> >>
>> >> >> --
>> >> >> Björn Danielsson
>> >> >> Cuspy Code AB
>> >> >>
>> >> >>
>> >> >> David Blevins <[hidden email]> wrote:
>> >> >> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
>> >> >> >
>> >> >> >> Does anyone have a recipe for using Apache Qpid or JORAM
>> >> >> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
>> >> >> >> The configuration I have in mind is a container-managed
>> >> >> >> MDB that receives messages from an external broker.
>> >> >> >
>> >> >> > Created this doc for you:
>> >> >> >
>> >> >> >   http://openejb.apache.org/changing-jms-implementations.html
>> >> >> >
>> >> >> > It's just an hour old, so may not fully answer the question. :)
>> >> >> >
>> >> >> > Between the two of us I'm sure we can perfect it.  You can use the
>> >> >> little blue pencil icon in the upper right to edit.  Feel free to
>> tweak
>> >> it
>> >> >> as much as you like and feel free to keep asking questions.
>> >> >> >
>> >> >> > One of the areas we really need to document better.  The last time
>> >> this
>> >> >> came up it didn't go beyond the mailing list, so hopefully this time
>> we
>> >> can
>> >> >> capture the steps more permanently :)
>> >> >> >
>> >> >> > Thanks for the question!
>> >> >> >
>> >> >> >
>> >> >> > -David
>> >> >>
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Romain Manni-Bucau
great!

- Romain


2012/6/27 Bjorn Danielsson <[hidden email]>

> I tried editing again after posting that (I'm a stubborn guy :)
> and now I could edit with login...
>
> --
> Björn Danielsson  <[hidden email]>
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > should be sync soon
> >
> > - Romain
> >
> >
> > 2012/6/27 Bjorn Danielsson <[hidden email]>
> >
> >> Aha, that worked, and the short type-name works now. Thanks!
> >>
> >> Someone should update the wiki page to say
> >>
> >>    provider="org.superbiz:genericra"
> >>
> >> instead of
> >>
> >>    provider="org.superbiz"
> >>
> >> I can't edit, I got a login prompt for ASF Committers when I tried.
> >>
> >> --
> >> Björn Danielsson
> >> Cuspy Code AB
> >>
> >>
> >> Romain Manni-Bucau <[hidden email]> wrote:
> >> > as you specified type, specufy the provider:
> >> >
> >> > provider="com.example:myProvId"
> >> >
> >> > - Romain
> >> >
> >> >
> >> > 2012/6/27 Bjorn Danielsson <[hidden email]>
> >> >
> >> >> Yes, I did. I think loading-by-provider may be broken, because I
> >> >> peeked at the TomEE source and found that if the provider is null
> >> >> it will find by type. So I made it work by removing the provider
> >> >> attribute in tomee.xml, and giving the full classname as the type:
> >> >>
> >> >> <Resource id="My Other JMS Resource Adapter"
> >> >> type="com.sun.genericra.GenericJMSRA">
> >> >> </Resource>
> >> >>
> >> >> And I made the corresponding name change in service-jar.xml:
> >> >>
> >> >>    types="com.sun.genericra.GenericJMSRA"
> >> >>
> >> >> instead of
> >> >>
> >> >>    types="GenericJMSRA"
> >> >>
> >> >> Without this it wouldn't find the class. Maybe there is some
> >> >> other way to make the short type-name work, but these changes
> >> >> were enough to get the resource created.
> >> >>
> >> >> Then I deployed my webapp and got some new errors, but I haven't
> >> >> really started configuring the adapter yet, so I'll get back
> >> >> here again when I have tried that.
> >> >>
> >> >> --
> >> >> Björn Danielsson
> >> >> Cuspy Code AB
> >> >>
> >> >>
> >> >> Romain Manni-Bucau <[hidden email]> wrote:
> >> >> > did you put it in tomee/lib?
> >> >> >
> >> >> > - Romain
> >> >> >
> >> >> >
> >> >> > 2012/6/27 Bjorn Danielsson <[hidden email]>
> >> >> >
> >> >> >> Thanks!
> >> >> >>
> >> >> >> Here is my first question (and stumbling block). I tried the
> second
> >> >> >> method on the wiki page, using the Generic JMS Resource Adapter to
> >> >> >> integrate an Apache Qpid client. But TomEE complained that it
> didn't
> >> >> >> find the provider:
> >> >> >>
> >> >> >> Jun 27, 2012 2:05:58 PM
> >> org.apache.openejb.config.ConfigurationFactory
> >> >> >> configureService
> >> >> >> SEVERE: Failed Configuring Service(id=My Other JMS Resource
> Adapter)
> >> >> >> org.apache.openejb.config.NoSuchProviderException: Cannot find the
> >> >> >> ServiceProvider id com.example in the service-jar.xml at
> com.example.
> >> >> Check
> >> >> >> that your OpenEJB configuration file is point to the right
> >> >> ServiceProvider
> >> >> >> id."
> >> >> >>        at
> >> >> >>
> >> >>
> >>
> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
> >> >> >>        at
> >> >> >>
> >> >>
> >>
> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
> >> >> >>        at
> >> >> >>
> >> >>
> >>
> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
> >> >> >>        at
> >> >> >>
> >> >>
> >>
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
> >> >> >> [...]
> >> >> >>
> >> >> >> This is my resource declaration in tomee.xml:
> >> >> >>
> >> >> >> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
> >> >> >> provider="com.example">
> >> >> >> </Resource>
> >> >> >>
> >> >> >> And this is the jar I put in $CATALINA_HOME/lib to package
> >> >> service-jar.xml:
> >> >> >>
> >> >> >> # jar tvf tomee-qpid.jar
> >> >> >>     0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
> >> >> >>    71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
> >> >> >>     0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
> >> >> >>  2395 Wed Jun 27 12:29:38 CEST 2012
> >> META-INF/com.example/service-jar.xml
> >> >> >>
> >> >> >> Why didn't it work?
> >> >> >>
> >> >> >> Version info:
> >> >> >>
> >> >> >> apache-tomee-1.1.0-20120627.041358-42-plus
> >> >> >> genericjmsra/v2.1a
> >> >> >>
> >> >> >> No webapps deployed, just a fresh install, easy to replicate.
> >> >> >>
> >> >> >> --
> >> >> >> Björn Danielsson
> >> >> >> Cuspy Code AB
> >> >> >>
> >> >> >>
> >> >> >> David Blevins <[hidden email]> wrote:
> >> >> >> > On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
> >> >> >> >
> >> >> >> >> Does anyone have a recipe for using Apache Qpid or JORAM
> >> >> >> >> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
> >> >> >> >> The configuration I have in mind is a container-managed
> >> >> >> >> MDB that receives messages from an external broker.
> >> >> >> >
> >> >> >> > Created this doc for you:
> >> >> >> >
> >> >> >> >   http://openejb.apache.org/changing-jms-implementations.html
> >> >> >> >
> >> >> >> > It's just an hour old, so may not fully answer the question. :)
> >> >> >> >
> >> >> >> > Between the two of us I'm sure we can perfect it.  You can use
> the
> >> >> >> little blue pencil icon in the upper right to edit.  Feel free to
> >> tweak
> >> >> it
> >> >> >> as much as you like and feel free to keep asking questions.
> >> >> >> >
> >> >> >> > One of the areas we really need to document better.  The last
> time
> >> >> this
> >> >> >> came up it didn't go beyond the mailing list, so hopefully this
> time
> >> we
> >> >> can
> >> >> >> capture the steps more permanently :)
> >> >> >> >
> >> >> >> > Thanks for the question!
> >> >> >> >
> >> >> >> >
> >> >> >> > -David
> >> >> >>
> >> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

David Blevins-2
In reply to this post by Bjorn Danielsson-2

On Jun 27, 2012, at 7:55 AM, Bjorn Danielsson wrote:

> I tried editing again after posting that (I'm a stubborn guy :)
> and now I could edit with login...

Good quality to have :)

That came through perfectly.  Went ahead and committed! Thank you so much!

Two contributions in 24 hours.  Love it.


-David


>
> --
> Björn Danielsson  <[hidden email]>
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
>> should be sync soon
>>
>> - Romain
>>
>>
>> 2012/6/27 Bjorn Danielsson <[hidden email]>
>>
>>> Aha, that worked, and the short type-name works now. Thanks!
>>>
>>> Someone should update the wiki page to say
>>>
>>>   provider="org.superbiz:genericra"
>>>
>>> instead of
>>>
>>>   provider="org.superbiz"
>>>
>>> I can't edit, I got a login prompt for ASF Committers when I tried.
>>>
>>> --
>>> Björn Danielsson
>>> Cuspy Code AB
>>>
>>>
>>> Romain Manni-Bucau <[hidden email]> wrote:
>>>> as you specified type, specufy the provider:
>>>>
>>>> provider="com.example:myProvId"
>>>>
>>>> - Romain
>>>>
>>>>
>>>> 2012/6/27 Bjorn Danielsson <[hidden email]>
>>>>
>>>>> Yes, I did. I think loading-by-provider may be broken, because I
>>>>> peeked at the TomEE source and found that if the provider is null
>>>>> it will find by type. So I made it work by removing the provider
>>>>> attribute in tomee.xml, and giving the full classname as the type:
>>>>>
>>>>> <Resource id="My Other JMS Resource Adapter"
>>>>> type="com.sun.genericra.GenericJMSRA">
>>>>> </Resource>
>>>>>
>>>>> And I made the corresponding name change in service-jar.xml:
>>>>>
>>>>>   types="com.sun.genericra.GenericJMSRA"
>>>>>
>>>>> instead of
>>>>>
>>>>>   types="GenericJMSRA"
>>>>>
>>>>> Without this it wouldn't find the class. Maybe there is some
>>>>> other way to make the short type-name work, but these changes
>>>>> were enough to get the resource created.
>>>>>
>>>>> Then I deployed my webapp and got some new errors, but I haven't
>>>>> really started configuring the adapter yet, so I'll get back
>>>>> here again when I have tried that.
>>>>>
>>>>> --
>>>>> Björn Danielsson
>>>>> Cuspy Code AB
>>>>>
>>>>>
>>>>> Romain Manni-Bucau <[hidden email]> wrote:
>>>>>> did you put it in tomee/lib?
>>>>>>
>>>>>> - Romain
>>>>>>
>>>>>>
>>>>>> 2012/6/27 Bjorn Danielsson <[hidden email]>
>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>> Here is my first question (and stumbling block). I tried the second
>>>>>>> method on the wiki page, using the Generic JMS Resource Adapter to
>>>>>>> integrate an Apache Qpid client. But TomEE complained that it didn't
>>>>>>> find the provider:
>>>>>>>
>>>>>>> Jun 27, 2012 2:05:58 PM
>>> org.apache.openejb.config.ConfigurationFactory
>>>>>>> configureService
>>>>>>> SEVERE: Failed Configuring Service(id=My Other JMS Resource Adapter)
>>>>>>> org.apache.openejb.config.NoSuchProviderException: Cannot find the
>>>>>>> ServiceProvider id com.example in the service-jar.xml at com.example.
>>>>> Check
>>>>>>> that your OpenEJB configuration file is point to the right
>>>>> ServiceProvider
>>>>>>> id."
>>>>>>>       at
>>>>>>>
>>>>>
>>> org.apache.openejb.config.ServiceUtils.getServiceProvider(ServiceUtils.java:114)
>>>>>>>       at
>>>>>>>
>>>>>
>>> org.apache.openejb.config.ConfigurationFactory.resolveServiceProvider(ConfigurationFactory.java:1025)
>>>>>>>       at
>>>>>>>
>>>>>
>>> org.apache.openejb.config.ConfigurationFactory.configureService(ConfigurationFactory.java:887)
>>>>>>>       at
>>>>>>>
>>>>>
>>> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:403)
>>>>>>> [...]
>>>>>>>
>>>>>>> This is my resource declaration in tomee.xml:
>>>>>>>
>>>>>>> <Resource id="My Other JMS Resource Adapter" type="GenericJMSRA"
>>>>>>> provider="com.example">
>>>>>>> </Resource>
>>>>>>>
>>>>>>> And this is the jar I put in $CATALINA_HOME/lib to package
>>>>> service-jar.xml:
>>>>>>>
>>>>>>> # jar tvf tomee-qpid.jar
>>>>>>>    0 Wed Jun 27 14:02:02 CEST 2012 META-INF/
>>>>>>>   71 Wed Jun 27 14:02:02 CEST 2012 META-INF/MANIFEST.MF
>>>>>>>    0 Wed Jun 27 12:29:38 CEST 2012 META-INF/com.example/
>>>>>>> 2395 Wed Jun 27 12:29:38 CEST 2012
>>> META-INF/com.example/service-jar.xml
>>>>>>>
>>>>>>> Why didn't it work?
>>>>>>>
>>>>>>> Version info:
>>>>>>>
>>>>>>> apache-tomee-1.1.0-20120627.041358-42-plus
>>>>>>> genericjmsra/v2.1a
>>>>>>>
>>>>>>> No webapps deployed, just a fresh install, easy to replicate.
>>>>>>>
>>>>>>> --
>>>>>>> Björn Danielsson
>>>>>>> Cuspy Code AB
>>>>>>>
>>>>>>>
>>>>>>> David Blevins <[hidden email]> wrote:
>>>>>>>> On Jun 26, 2012, at 12:46 AM, Bjorn Danielsson wrote:
>>>>>>>>
>>>>>>>>> Does anyone have a recipe for using Apache Qpid or JORAM
>>>>>>>>> with TomEE-plus (i.e. replacing the bundled ActiveMQ)?
>>>>>>>>> The configuration I have in mind is a container-managed
>>>>>>>>> MDB that receives messages from an external broker.
>>>>>>>>
>>>>>>>> Created this doc for you:
>>>>>>>>
>>>>>>>>  http://openejb.apache.org/changing-jms-implementations.html
>>>>>>>>
>>>>>>>> It's just an hour old, so may not fully answer the question. :)
>>>>>>>>
>>>>>>>> Between the two of us I'm sure we can perfect it.  You can use the
>>>>>>> little blue pencil icon in the upper right to edit.  Feel free to
>>> tweak
>>>>> it
>>>>>>> as much as you like and feel free to keep asking questions.
>>>>>>>>
>>>>>>>> One of the areas we really need to document better.  The last time
>>>>> this
>>>>>>> came up it didn't go beyond the mailing list, so hopefully this time
>>> we
>>>>> can
>>>>>>> capture the steps more permanently :)
>>>>>>>>
>>>>>>>> Thanks for the question!
>>>>>>>>
>>>>>>>>
>>>>>>>> -David
>>>>>>>
>>>>>
>>>

Reply | Threaded
Open this post in threaded view
|

Re: Anyone have experience with alternative JMS providers?

Bjorn Danielsson
In reply to this post by David Blevins-2
Update on my attempt to integrate Apache Qpid with TomEE.

I had to abandon the GenericJMSRA approach because the only
Queue implementation class I found in the Qpid client (which
was org.apache.qpid.client.AMQQueue) could not be constructed
by the genericra ObjectBuilderFactory, because the class had
protected members.

But I found that there is a resource adapter for Qpid included
in the source code. I haven't tried it with the bundled-in-EAR
deployment method because I am more interested in seeing if
this can be done in the container.

So I created a service-jar.xml for this Qpid Resource Adapter,
working from David's GenericJMSRA example and the Qpid source
code. One patch was needed for the Qpid Resource Adapter:
it has a property "TransactionManagerLocatorClass" which is
used to find the container's TransactionManager. Different
methods were used for different containers, and I had to add
one for TomEE, which I did by cloning the one for Glassfish
and changing the JNDI name for the TransactionManager.

Then I got stuck. I get a JNDI NameNotFoundException from the
Qpid Activation thingy complaining about my JMS destination
names when my MDBs are created. Probably a Qpid bug.

I don't think I'll spend any more effort on making Qpid work
with TomEE. My original motivation was to try out alternatives
to ActiveMQ for my project, not to make Qpid work at all costs.
I might try with another JMS provider, and in that case I'll
post about it here of course.

--
Björn Danielsson
Cuspy Code AB