JBoss Community

message driven bean exposed as a web service

created by reza g in JBoss Web Services - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community