You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Gert Vanthienen <ge...@skynet.be> on 2007/07/21 11:06:40 UTC

XBean annotations in activemq-ra (5.0-SNAPSHOT)

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.