activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject XBean annotations in activemq-ra (5.0-SNAPSHOT)
Date Sat, 21 Jul 2007 09:06:40 GMT

L.S.,


In the latest ActiveMQ 5.0-SNAPSHOT releases, the 'resourceAdapter' XBean
annotation is specified on both the
org.apache.activemq.ra.MessageResourceAdapter interface and the
org.apache.activemq.ra.ActiveMQResourceAdapter class.  When I try to
integrate this with ServiceMix, I get an Exception that says "Could not
instantiate bean class [org.apache.activemq.ra.MessageResourceAdapter]:
Specified class is an interface"

Removing the annotation from the interface solves the problem (see patch
below)


Regards,

Gert


Index:
/home/gert/projects/activemq/activemq-ra/src/main/java/org/apache/activemq/ra/MessageResourceAdapter.java
===================================================================
---
/home/gert/projects/activemq/activemq-ra/src/main/java/org/apache/activemq/ra/MessageResourceAdapter.java
(revision 558217)
+++
/home/gert/projects/activemq/activemq-ra/src/main/java/org/apache/activemq/ra/MessageResourceAdapter.java
(working copy)
@@ -30,8 +30,6 @@
  * and deliver messages to those end points using the connection configure
in
  * the resource adapter. <p/>Must override equals and hashCode (JCA spec
16.4)
  *
- * @org.apache.xbean.XBean element="resourceAdapter" rootElement="true"
- * description="The JCA Resource Adaptor for ActiveMQ"
  * @version $Revision$
  */
 public interface MessageResourceAdapter

-- 
View this message in context: http://www.nabble.com/XBean-annotations-in-activemq-ra-%285.0-SNAPSHOT%29-tf4121263s2354.html#a11720687
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message