• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web-Services javadocs/SAAJ-JVM

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to undestand the following about SAAJ:
In javadoc it says about SOAPConnectionFactory:

A factory for creating SOAPConnection objects. Implementation of this class is optional. If SOAPConnectionFactory.newInstance() throws an UnsupportedOperationException then the implementation does not support the SAAJ communication infrastructure



What does "the implementation is optional" practically mean? When a machine has a java installation how could the implementation not be provided? Is there a chance I use the SAAJ communication and a JRE not support it? How is this possible?

Thanks
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

Jim Akmer wrote:
What does "the implementation is optional" practically mean? When a machine has a java installation how could the implementation not be provided? Is there a chance I use the SAAJ communication and a JRE not support it?


It means that you cannot rely on SAAJ being implemented in all JREs and thus you have to write your programs accordingly.
Perhaps some people have decided that SAAJ is not a central API, for instance in JREs for embedded devices, so it was made optional.
Best wishes!
 
Jim Akmer
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Ivan Krizsan: Hi, I am still confused. For example you say: "not a central API, for instance in JREs for embedded devices" but these devices, use J2ME right? Isn't there 1 JRE for all PCs?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jim Akmer wrote:@Ivan Krizsan: Hi, I am still confused. For example you say: "not a central API, for instance in JREs for embedded devices" but these devices, use J2ME right? Isn't there 1 JRE for all PCs?


No. Though quite old, I recommend taking a look at this webpage: http://www.dwheeler.com/java-imp.html
Best wishes!
 
reply
    Bookmark Topic Watch Topic
  • New Topic