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
--------------------------------------------------------------
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
[
http://community.jboss.org/message/552432#552432]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]