3 Replies Latest reply on Jul 15, 2010 10:21 AM by peterj

    message driven bean exposed as a web service

    rezaghp

      Hi,

       

      Trying to expose an mdb as a ws :

       

       

      @WebService(name="Calculator2",
      targetNamespace = "http://org.jboss.ws/samples",
      serviceName="Calculator2")
      @WebContext(contextRoot="/jboss-ejb3-tutorial-webservice")
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      @MessageDriven(activationConfig = {
      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
      @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/tutorial") 
      },
      messageListenerInterface = javax.jms.MessageListener.class)
       
      public class CalculatorMDB extends JMSTransportSupportEJB3 {
      @WebMethod(operationName = "add")
      public int add(int x, int y)
        {
           return x * y;
        }
      }
       
      public interface Calculator2 extends Remote
      {
         int add(int x, int y);
      }
      

       

      I get the following error:

       

       

      java.lang.RuntimeException: Unable to choose messagingType interface for MDB CalculatorBean from []

       

      Has anyone done this before?

       

      Environment: JB AS 5.1, JB-WS native 3.3.1.GA