ActivationSpecClass org.apache.activemq.ra.ActiveMQActivationSpec is likely
wrong, you need to switch  org.apache.activemq.ra.ActiveMQActivationSpec to
the sonic activation spec class - sorry dont know this one.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-09-29 10:13 GMT-07:00 dimas <[email protected]>:

> Ok, so my mdb container now looks like this:
>
> <Container id="MyJmsMdbContainer" ctype="MESSAGE">
>         ResourceAdapter = MySonicAdapter
>         ActivationSpecClass org.apache.activemq.ra.ActiveMQActivationSpec
>     </Container>
>
> the mdb header :
>
> @MessageDriven(name = "myMDB", activationConfig =  {
>         @ActivationConfigProperty(propertyName  = "destinationType",
>                 propertyValue = "javax.jms.Topic"),
>
>         @ActivationConfigProperty(propertyName  = "subscriptionDurability",
>                 propertyValue = "Durable"),
>
>         @ActivationConfigProperty(propertyName  = "destination",
>                 propertyValue = "Topic"), // Ext. JNDI Name
> })
> public class SimpleMDB  implements MessageListener {
>
> ...
> }
>
> Still getting this:
>
> Caused by: org.apache.openejb.OpenEJBException: Error deploying 'myMDB'.
> Exception: class org.apache.openejb.OpenEJBException: Unable to create
> activation spec: ResourceAdapter is not of type:
> org.apache.activemq.ra.MessageResourceAdapter: Unable to create activation
> spec: ResourceAdapter is not of type:
> org.apache.activemq.ra.MessageResourceAdapter
>         at
>
> org.apache.openejb.assembler.classic.Assembler.startEjbs(Assembler.java:1374)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:878)
>         ... 63 more
> Caused by: org.apache.openejb.OpenEJBException: Unable to create activation
> spec: ResourceAdapter is not of type:
> org.apache.activemq.ra.MessageResourceAdapter
>         at
>
> org.apache.openejb.core.mdb.MdbContainer.createActivationSpec(MdbContainer.java:244)
>         at
> org.apache.openejb.core.mdb.MdbContainer.deploy(MdbContainer.java:135)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.startEjbs(Assembler.java:1361)
>         ... 64 more
> Caused by: javax.resource.ResourceException: ResourceAdapter is not of
> type:
> org.apache.activemq.ra.MessageResourceAdapter
>         at
>
> org.apache.activemq.ra.ActiveMQActivationSpec.setResourceAdapter(ActiveMQActivationSpec.java:243)
>         at
>
> org.apache.openejb.core.mdb.MdbContainer.createActivationSpec(MdbContainer.java:240)
>         ... 66 more
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Connect-to-external-non-ActiveMQ-JMS-server-tp4676331p4676372.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to