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