Java API for XML Messaging

The Java API for XML Messaging (JAXM) enables distributed software applications to communicate using XML (and SOAP).

Uses your system voice; voice and rate in settings.

≈ 5 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

The Java API for XML Messaging (JAXM) enables distributed software applications to communicate using XML (and SOAP). JAXM supports both asynchronous and synchronous messaging.

JAXM is one of the Java XML programming APIs

  • 4 Messaging providers
  • 5 References
  • 6 See also
  • Overview

    edit edit source

    The Java API for XML Messaging (JAXM) enables developers to use XML messaging using the Java platform. Developers can create and send XML messages over the internet using the JAXM API.[1]

    Also, Java API for XML Messaging has several advantages over Remote Procedure Call such as the following:

    • One-way (asynchronous) messaging
    • Routing of a message to more than one party
    • Reliable messaging with features such as guaranteed delivery

    The complete JAXM API comes with two packages:[2]

    • javax.xml.soap: This package contains the API for creating and populating a SOAP message.
    • javax.xml.messaging: This package allows one to send one-way messages via a messaging provider.

    Messages

    edit edit source

    Messages in JAXM are XML messages that follow the prescribed SOAP format and standards. There are two main types of SOAP messages: those that have attachments and those that do not. For example, if you want your message to contain an image, you must send an attachment with the message. The SAAJ API provides the AttachmentPart class for attachments in SOAP messages.[3]

    Connections

    edit edit source

    A connection is required to send and receive all SOAP messages. The connection can go to a messaging provider or a particular destination.[4] The JAXM API provides the class and interface to represent two kinds of connections:

    • javax.xml.soap.SOAPConnection—a connection from the sender directly to the receiver (a point-to-point connection)
    • javax.xml.messaging.ProviderConnection Deprecated link archived 2013-04-13 at archive.today—a connection to a messaging provider

    SOAP Connection

    edit edit source

    A SOAPConnection is a point-to-point connection for sending messages directly to a remote party.[5] A SOAPConnection object, which represents a point-to-point connection, is simple to create and use. You do not have to do any configuration to use a SOAPConnection object because it does not need to run in a servlet container (like Tomcat) or in a J2EE server. It is the only way for a client to have a connection without a service provider.[6]

    Provider Connection

    edit edit source

    A ProviderConnection object represents a connection to a messaging provider. (The next section explains more about messaging providers.) When you send a message via a ProviderConnection object, the message goes to the messaging provider. The messaging provider forwards the message, following the message's routing instructions, until the message gets to the ultimate recipient's messaging provider, which in turn forwards the message to the ultimate recipient.[7]

    Messaging providers

    edit edit source

    A messaging provider keeps track of messages and routes them to the correct destination or destinations. It is a service that handles the transmission and routing of messages.[8]

    When to use a messaging provider

    edit edit source

    A JAXM client may or may not use a messaging provider. Generally, you do not need a messaging provider if you just want to be a consumer of Web services. Some limitations of not using a messaging provider are the following:

    The client can send only request-response messages The client can act in the client role only

    Some advantages to not using a messaging provider are the following:

    • The application can be written using the J2SE platform
    • The application is not required to be deployed in a servlet container or a J2EE container
    • No configuration is required[9]

    References

    edit edit source
    1. ^ "Java API for XML Messaging". Wikipedia revision 1335537112, retrieved 2026-11-22
    2. ^ "Java API for XML Messaging". Wikipedia revision 1335537112, retrieved 2026-11-22
    3. ^ "The Java XML Pack". Archived from the original on 2017-05-10. Retrieved 2013-02-05. Wikipedia revision 1335537112, retrieved 2026-11-22
    4. ^ "The Java XML Pack". Archived from the original on 2017-05-10. Retrieved 2013-02-05. Wikipedia revision 1335537112, retrieved 2026-11-22
    5. ^ "SOAPConnection (Java EE 5 SDK)". Wikipedia revision 1335537112, retrieved 2026-11-22
    6. ^ "Overview of JAXM". Wikipedia revision 1335537112, retrieved 2026-11-22
    7. ^ "Overview of JAXM". Wikipedia revision 1335537112, retrieved 2026-11-22
    8. ^ "The Java XML Pack". Archived from the original on 2017-05-10. Retrieved 2013-02-05. Wikipedia revision 1335537112, retrieved 2026-11-22
    9. ^ "Overview of JAXM". Wikipedia revision 1335537112, retrieved 2026-11-22

    See also

    edit edit source Jakarta EE specificationsformerly known as: Java Platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2EE)Web app Enterprise app Web services Other Removed Related See also: Category:Java enterprise platform

    Text derived from https://en.wikipedia.org/w/index.php?oldid=1335537112 under CC BY-SA 4.0; modifications have been made.

    Words in each sectionConnectionsConnectionsConnections: 235 words235See alsoSee alsoSee also: 174 words174Messaging providersMessaging providersMessaging providers: 143 words143OverviewOverviewOverview: 115 words115MessagesMessagesMessages: 68 words68
    Words in each section. Measured from the stored article body; sections below the minimum are not plotted.

    Provenance

    snapshot enwiki-001335537112 · captured 2026-01-29 · ledger · version history

    Cite this page as: encyclopegia.org, “Java API for XML Messaging”, snapshot enwiki-001335537112. https://encyclopegia.org/a/java-api-for-xml-messaging