Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8A4910A09 for ; Tue, 25 Mar 2014 23:05:57 +0000 (UTC) Received: (qmail 26529 invoked by uid 500); 25 Mar 2014 23:05:57 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 26474 invoked by uid 500); 25 Mar 2014 23:05:56 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 26465 invoked by uid 99); 25 Mar 2014 23:05:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 23:05:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christopher.luffman@outlook.com designates 65.54.190.219 as permitted sender) Received: from [65.54.190.219] (HELO bay0-omc4-s17.bay0.hotmail.com) (65.54.190.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 23:05:49 +0000 Received: from BAY180-W80 ([65.54.190.199]) by bay0-omc4-s17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 25 Mar 2014 16:05:26 -0700 X-TMN: [Cx+1o0EGpIr6sf6Hmmw7mRGa2lLfhEKY] X-Originating-Email: [christopher.luffman@outlook.com] Message-ID: Content-Type: multipart/alternative; boundary="_27fee7dd-d17c-407f-8f62-d8f353c4be38_" From: Christopher Luffman To: "users@qpid.apache.org" Subject: Using Deployment Description Instead of Annotations In JBoss 5.1 Date: Tue, 25 Mar 2014 19:05:26 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 25 Mar 2014 23:05:26.0886 (UTC) FILETIME=[B5B83060:01CF487E] X-Virus-Checked: Checked by ClamAV on apache.org --_27fee7dd-d17c-407f-8f62-d8f353c4be38_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I am attempting to convert the QPID JCA QpidHelloListenerBean example=92s c= onfiguration from annotations to the deployment description in ejb-jar.xml = file. However=2C I am having a problem with the connectionURL and desti= nation properties. =20 The annotations for the example look like this: @MessageDriven (activationConfig =3D { @ActivationConfigProperty(propertyName =3D "acknowledgeMode"=2C property= Value =3D "=85")=2C @ActivationConfigProperty(propertyName =3D "destinationType"=2C property= Value =3D "=85")=2C @ActivationConfigProperty(propertyName =3D "connectionURL"=2C propertyVa= lue =3D "=85")=2C @ActivationConfigProperty(propertyName =3D "destination"=2C propertyValu= e =3D "=85")=2C @ActivationConfigProperty(propertyName =3D "maxSession"=2C propertyValue= =3D "=85") }) =20 My converted ejb-jar.xml file looks like: =20 QpidHelloListenerBean org.apache.qpid.jca.example.ejb.QpidHelloListenerBea= n Bean javax.jms.Queue =20 connectionURL =85 destination =85 destinationType =85 =85. However=2C when I attempt to deploy this I get the following error for conn= ectionURL: =20 Caused by: java.beans.IntrospectionException: No property found for: connec= tionURL on JavaBean: org.jboss.resource.adapter.jms.inflow.JmsActivationSpe= c@2b521cd6(ra=3Dnull destination=3D... destinationType=3Djavax.jms.Queue tx= =3Dtrue durable=3Dfalse reconnect=3D10 provider=3Djava:/DefaultJMSProvider = user=3Dnull maxMessages=3D1 minSession=3D1 maxSession=3D15 keepAlive=3D6000= 0 useDLQ=3Dtrue DLQHandler=3Dorg.jboss.resource.adapter.jms.inflow.dlq.Gene= ricDLQHandler DLQJndiName=3Dqueue/DLQ DLQUser=3Dnull DLQMaxResent=3D5) at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(Pro= pertyEditors.java:354) at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(Pro= pertyEditors.java:285) at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpe= c(ActivationSpecFactory.java:129) ... 70 more =20 And for the destination property I get the error:=20 org.apache.qpid.ra.admin.QpidQueueImpl cannot be cast to org.jboss.jms.dest= ination.JBossDestination =20 How should I setup my ejb-jar.xml file to allow me to change the connection= URL and destination without modifying the code? Or is there another way t= hat I am missing? =20 I am using JBoss 5.1 AS. =20 = --_27fee7dd-d17c-407f-8f62-d8f353c4be38_--