After obtaining a connection to its messaging provider, a client
can get information about that provider. The following code fragment
demonstrates how the
can be used to retrieve its
and then to get the name and version number of the messaging provider.
ProviderMetaData pmd = con.getMetaData(); String name = pmd.getName(); int majorVersion = pmd.getMajorVersion(); int minorVersion = pmd.getMinorVersion();The
ProviderMetaDatainterface also makes it possible to find out which profiles a JAXM provider supports. The following line of code uses the method
getSupportedProfilesto retrieve an array of
Stringobjects naming the profile(s) that the JAXM provider supports.
String  profiles = pmd.getSupportedProfiles();When a JAXM implementation supports a profile, it supports the functionality supplied by a particular messaging specification. A profile is built on top of the SOAP 1.1 and SOAP with Attachments specifications and adds more capabilities. For example, a JAXM provider may support an ebXML profile, which means that it supports headers that specify functionality defined in the ebXML specification "Message Service Specification: ebXML Routing, Transport, & Packaging, Version 1.0".
Support for profiles, which typically add enhanced security and quality of service features, is required for the implementation of end-to-end asynchronous messaging.
|Method from javax.xml.messaging.ProviderMetaData Summary:|
|getMajorVersion, getMinorVersion, getName, getSupportedProfiles|
|Method from javax.xml.messaging.ProviderMetaData Detail:|
public int getMajorVersion()
public int getMinorVersion()
public String getSupportedProfiles()