On 11/29/06, tobinibot <[EMAIL PROTECTED]> wrote:
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:
The exception looks fairly self descriptive...
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:
org.jboss.resource.adapter.jms.inflow.JmsActivationSpec
You might wanna ask in the JBoss forums why there is no property found
of that name & see what annotations you're meant to use on the MDB
--
James
-------
http://radio.weblogs.com/0112098/