activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Activemq does not support customized message listener ?
Date Wed, 22 Jun 2011 11:34:24 GMT
Can you raise a Jira issue for this? It'd be great if you could provide a
patch as well

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Jun 22, 2011 at 10:50 AM, Shawn Jiang <genspring@gmail.com> wrote:

> In EJB31 spec: 5.4.2 The Required Message Listener Interface.   It said
> that
> MDB should support customized message listener.  Now I'm trying to enable
>  MDB custom listener in geronimo.   But I find hard
> coded javax.jms.MessageListener in ActiveMQ code, it make it impossible to
> add the support for geronimo/openejb   without updating code in activemq
> side.    Thoughts ?
>
> 1,
>
> org.apache.activemq.ra.MessageEndpointProxy.MessageEndpointProxy(MessageEndpoint)
>  public MessageEndpointProxy(MessageEndpoint endpoint) {
>        if (!(endpoint instanceof MessageListener)) {
>            throw new IllegalArgumentException("MessageEndpoint is not a
> MessageListener");
>        }
>        messageListener = endpoint;
>        proxyID = getID();
>        this.endpoint = endpoint;
>    }
>
>
> 2, org.apache.activemq.ra.ActiveMQEndpointWorker
>
> public class ActiveMQEndpointWorker {
> ...
>    static {
>        try {
>            ON_MESSAGE_METHOD = MessageListener.class.getMethod("onMessage",
> new Class[] {
>                Message.class
>            });
> ...
> }
>
>
>
> --
> Shawn
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message