| OnewayListener | javax.xml.messaging |
| JAXM 1.1; JWSDP 1.0 |
public interface OnewayListener {
// Public Instance Methods
public abstract void onMessage(javax.xml.soap.SOAPMessage message);
}
The
OnewayListener
interface is implemented by a
JAXMServlet
subclass that receives a SOAP message but does not wish to return an immediate response. The
onMessage( )
method is called whenever a message is received and is provided with a
SOAPMessage
object created from that message as its only argument. The implementation may handle the message immediately or
A JAXM client that implements this interface and wishes to return a reply message must create the message using the MessageFactory of the JAXM profile that it is using, set the destination address using a profile-specific method, and then call the ProviderConnection send( ) method. See the description of the JAXMServlet for information on obtaining an appropriate MessageFactory .
|
|
| ProviderConnection | javax.xml.messaging |
| JAXM 1.1; JWSDP 1.0 |
public interface ProviderConnection {
// Public Instance Methods
public abstract void close( ) throws JAXMException;
public abstract javax.xml.soap.MessageFactory createMessageFactory(String profile) throws JAXMException;
public abstract ProviderMetaData getMetaData( ) throws JAXMException;
public abstract void send(javax.xml.soap.SOAPMessage message) throws JAXMException;
}
A
ProviderConnection
object represents a connection
ProviderConnectionFactory pcf = ProviderConnectionFactory.newInstance( ); ProviderConnection conn = pcf.createConnection( );
All JAXM
The
createMessageFactory( )
method returns an object that can create messages
MessageFactory factory = conn.createMessageFactory("soaprp");
A
JAXMException
is thrown if the provider does not support the
Having
The close( ) method is used to release the ProviderConnection object when it is no longer required.
ProviderConnectionFactory.createConnection( )
|
|