Hi Cathal -- I see from your more recent mails that you are up and running with Axis2 on JMS. Is that still under WAS 6.1? If so, I'm curious what deployment approach you took in the end - was it 1) MDBs or 2) changing the Axis2 code to not use setMessageListener or 3) something else?
Hi Axis2 team -- Given Cathal's problem below (which I see also), what is the correct way to deploy Axis2 with JMS transport in in an app server that complies with the J2EE 1.4 spec? https://issues.apache.org/jira/browse/AXIS2-1069 (Message Driven Bean as JMS listener) was closed recently as won't fix, which suggest you don't want to support the MDB approach. Is that correct? Thanks all! -- George > -----Original Message----- > From: callagc4 [mailto:[EMAIL PROTECTED] > Sent: 06 February 2008 16:00 > To: [email protected] > Subject: setMessageListener not permitted in Websphere > > > Hi, > > We are currently deploying axis2 in Websphere 6.1. We wish to > use the jms transport. However axis2 fails to start because > it uses forbidden api's. > > On startup axis2's JMSConnectionFactory class calls the > listenOnDestination(String destinationJndi) method. Here it > creates a MessageConsumer and calls the > MessageConsumer.setMessageListener(MessageListener listener) > method. This causes failure and the exception thrown is as follows: > javax.jms.IllegalStateException: Method setMessageListener > not permitted > > On looking through docs online it is clear that IBM have > stuck to the J2EE > 1.4 specification. This states that the > MessageConsumer.setMessageListener(MessageListener listener) > method can not be called in a Web or EJB container. See > http://www.ibm.com/developerworks/library/j-getmess/ for details. > > My question is that why is axis2 not compliant with this > specification? Also what options do i have for using the jms > transport with axis2 in WAS. > > Initial research shows the following possibilities: > 1) Use MDB's (not ideal) > 2) Change the axis2 code itself and make a synchronous > MessageConsumer.receive call and poll for messages > > Can anyone advice on the best approach here? And also will > axis2 become compliant with the J2EE 1.4 spec in the future? > > Thanks, > Cathal > -- > View this message in context: > http://www.nabble.com/setMessageListener-not-permitted-in-Webs > phere-tp15306749p15306749.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
