Java 2EE and XML Development

Скачать в pdf «Java 2EE and XML Development»


// store the binary image data someplace


}


}


} catch(Exception e) {


// log the error, panic, etc.


}


// asynchronous SOAP — no message to send back return null;


}


}


О Handles the image update asynchronous message. This method returns null because no response is sent back to the message creator.


SOAP is an important development in the application integration space. Our discussion has been so detailed because we believe that it will play a significant role in your J2EE application in the future.

4.4 Building web services in J2EE


The idea of web services is taking the technology industry
by storm, due in large part to vigorous support from software giants such as IBM, Sun Microsystems, and Microsoft. It is central to Microsoft’s .NET strategy, as well as those of IBM, Sun, and numerous other companies. Since web services appear destined to succeed, we discuss building and using web services in the J2EE environment in this section.


As XML messaging technologies such as SOAP have gained momentum, moving distributed application architectures away from tightly coupled technologies such as CORBA and RMI has become possible. The web services architecture is a loosely coupled, service-oriented environment in which applications expose functionality to one another over the Web. This type of architecture maximizes the flexibility and interoperability of distributed applications. Because it is based on open standards such as XML and HTTP, it is completely vendor- and implementation-independent. A web service created using C++ and Microsoft’s .NET development tools can be consumed by a Java component running in a J2EE container. And once these services become pervasive, new types of applications that aggregate a set of services into completely integrated, inter-enterprise distributed systems will be possible.

Скачать в pdf «Java 2EE and XML Development»