To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Java API for XML Messaging

From Wikipedia, the free encyclopedia

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

YouTube Encyclopedic

  • 1/3
    Views:
    32 107
    198 736
    8 016
  • Introduction to Xml Data Parsing in Java | How to parse the data from given xml in Java
  • Java Online Training | Parsing XML using Java DOM Parser
  • Java XML Web Services Tutorial for Beginner Part 1 (JDK 8)

Transcription

Overview

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]

The following figure presents a conceptual relationship between JAXM and other architectural elements required in web-based, business-to-business messaging.

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

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

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:

SOAP Connection

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

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

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

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

  1. ^ "Java API for XML Messaging".
  2. ^ "Java API for XML Messaging".
  3. ^ "The Java(tm) XML Pack". Archived from the original on 2017-05-10. Retrieved 2013-02-05.
  4. ^ "The Java(tm) XML Pack". Archived from the original on 2017-05-10. Retrieved 2013-02-05.
  5. ^ "SOAPConnection (Java EE 5 SDK)".
  6. ^ "Overview of JAXM".
  7. ^ "Overview of JAXM".
  8. ^ "The Java(tm) XML Pack". Archived from the original on 2017-05-10. Retrieved 2013-02-05.
  9. ^ "Overview of JAXM".

See also

This page was last edited on 29 March 2023, at 23:33
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.