[jboss-user] [JBoss Web Services] - message driven bean exposed as a web service

reza g do-not-reply at jboss.com
Tue Jul 13 23:13:24 EDT 2010

reza g [http://community.jboss.org/people/rezaghp] created the discussion

"message driven bean exposed as a web service"

To view the discussion, visit: http://community.jboss.org/message/552432#552432


Trying to expose an mdb as a ws :

targetNamespace = "http://org.jboss.ws/samples",
@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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100713/29d83248/attachment-0001.html 

More information about the jboss-user mailing list