servicemix-jms component gets "javax.jms.IllegalStateException: Method 
setMessageListener not permitted error" in WAS 6.1
-------------------------------------------------------------------------------------------------------------------------

                 Key: SM-1805
                 URL: https://issues.apache.org/activemq/browse/SM-1805
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-components, servicemix-jms
    Affects Versions: 3.0
         Environment: AIX,
WAS 6.1
Websphere MQ 6.0.1.0
            Reporter: Alper Sogukpinar
            Priority: Critical


Lightweight JmsReceiverComponent and other servicemix-jms components gets 
"javax.jms.IllegalStateException: Method setMessageListener not permitted 
error" in WAS 6.1

When I searched the error and I found that 
"javax.jms.MessageConsumer method setMessageListener()" (which is used in 
JmsReceiverComponent) and some other methods may only be used by an application 
running in a client container -- in other words, they may never be called in 
the Web or EJB container:
As far as I know 
DefaultMessageListenerContainer of Spring  performs the MessageListener 
invocation itself so I guess it may work on web container and also at ejb 
container, similar servicemix component may be an option.

Related links:
http://java.sun.com/j2ee/j2ee-1_4-fr-spec.pdf (J2EE.6.6 Java™ Message Service 
(JMS) 1.1 Requirements)
http://www-128.ibm.com/developerworks/java/library/j-getmess/
http://www-304.ibm.com/jct09002c/isv/tech/faq/individual.jsp?oid=1:80481



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to