Hi , As per the ejb2.1 we can create the MDB without JMS client In my requirement I want to create MDB as a webservice so that MDB can consume the SOAPMessage. We have interface javax.xml.messaging.ReqRespListener that is having the onMessage(SOAPMessage m) return also SOAPMessage.
I have a JAXM client form which I can send SOAPmessage but how to configure the MDB for this scenario? I am using the weblogic appserver 9.1 ,how to create the weblogic-ejb-jar,ejb-jar .xml for this requirement because I am not using the JMS . I need some examples.
I would be appreciate you if u resolve my problem.
You may want to post this question in one of the BEA forums.
EJB 2.1 is part of J2EE - JAXM is not. Many J2EE vendors see JAXM as having an unnecessary overlap with JMS and JAX-RPC.
JAXM-MDBs are part of JAXM. Under regular J2EE only stateless session beans can be exposed as a Web service.
Regardless if you use a servlet-based endpoint or an EJB-based endpoint you won't have a response to send back to the Web service client after you post the XML/SOAP message to a JMS Queue or Topic. Web services of this kind usually use the One-Way Message Exchange Pattern, i.e. no SOAP response is returned to the client. The MDB will have to find an alternate route to return the response to the original client.