Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web-Services javadocs/SAAJ-JVM  RSS feed

 
Jim Akmer
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • 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
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!