Skip to main content

Streaming of large payloads in JAX-WS2.0

1 reply [Last post]
Joined: 2004-04-01

Doug and all -,
What are the provisions in the latest JAX-WS stack for dealing with web services with larger than normal payloads? Is there any specific capabilities for "xml streaming", plans for it, etc.?

Thanks a lot,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-08-16

I would think that using MTOM is about the best you can do. If you are working with web services, then you are talking about messaging.

If you want to efficient streaming of data, then I would say that you need some sort of connected model, which is a fundamentally different basis for communications than web services.

If you want to deal with very large payloads, you might need to "stream" the content in a sequence of messages (i.e., if the payload is larger than what you could reasonably deal with in a single message).

In some of the early work I did with web services, I pushed very hard to implement a streaming approach for streaming large chunks of data out of a database. It is a losing battle, and I have long since given up.