I'm trying to use ActiveMQ 4.0.2 with JBoss 4.0.5, and am running into some
issues.  I have a feeling that it is mostly a JBoss issue, but I hope it's
ok if I post here, since someone may have run across this before.

I have integrated ActiveMQ with JBoss using the RAR file.  My
activemq-jms-ds.xml file has the following elements in it:


        < tx-connection-factory >
                < jndi-name >activemq/QueueConnectionFactory< /jndi-name >
                < xa-transaction/ >
                < track-connection-by-tx/ >
                < rar-name >activemq-ra.rar< /rar-name >
                < connection-definition >javax.jms.QueueConnectionFactory<
/connection-definition >
                < ServerUrl >tcp://queuehost:61616< /ServerUrl >
                < !--
                < UserName >sa< /UserName >
                < Password >< /Password >
                -- >
                < min-pool-size >1< /min-pool-size >
                < max-pool-size >200< /max-pool-size >
                < blocking-timeout-millis >30000
                < idle-timeout-minutes >3< /idle-timeout-minutes >
        < /tx-connection-factory >


and


        < mbean code="org.jboss.resource.deployment.AdminObject"
name="activemq.queue:name=capacity3" >
                < attribute name="JNDIName" >activemq/queue/capacity3< 
/attribute >
                < depends optional-attribute-name="RARName"
>jboss.jca:service=RARDeployment,name='activemq-ra.rar'< /depends >
                < attribute name="Type" >javax.jms.Queue< /attribute >
                < attribute name="Properties" >PhysicalName=queue.capacity3< 
/attribute >
        < /mbean >


(Spaces were added around the '<' and '>' to keep the tags from being parsed
by the browser.)

I want to have my MessageDrivenBean read from this queue, but I can't get it
working.  Here is the relevant section of my MDB.


@MessageDriven(
  mappedName = "jms/NewMessage",
  activationConfig = {
    @ActivationConfigProperty(propertyName = "connectionFactoryJndiName",
propertyValue = "activemq/QueueConnectionFactory"),
    @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),    
    @ActivationConfigProperty(propertyName = "destination", propertyValue =
"activemq/queue/capacity3")   
  }
)
public class NewMessage implements MessageListener {


When I try to deploy this, I get the following error from JBoss:


14:51:30,765 WARN  [ServiceController] Problem starting service
jboss.j2ee:ear=NewsApp.ear,jar=NewsApp-ejb.jar,name=NewMessage,service=EJB3
org.jboss.deployment.DeploymentException: Error for ActivationSpec class
org.jboss.resource.adapter.jms.inflow.JmsActivationSpec as JavaBean; -
nested throwable: (java.beans.IntrospectionException: No property found for:
ConnectionFactoryJndiName on JavaBean:
[EMAIL PROTECTED](ra=null
destination=activemq/queue/capacity3 isTopic=false tx=true durable=false
reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1
minSession=1 maxSession=15 keepAlive=60000 useDLQ=true
DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler
DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=0))
        at
org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
        at
org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:135)
        at
org.jboss.resource.deployment.RARDeployment.createActivationSpec(RARDeployment.java:254)
        at
org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:218)
        at
org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
        at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
        at
org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:285)
        at
org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:189)
        at
org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:185)
        at
org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:151)
        at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        .......


Has anyone seen this before?  Thanks.

Tobin
-- 
View this message in context: 
http://www.nabble.com/Cannot-integrate-with-JBoss-tf2728291.html#a7609570
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to