Nov 02 2009
How to set expectation on void method using easymocks?
Use EasyMock.expectLastCall() method to set expectation on void methods.
eg. mock.documentChanged(”Document”);
expectLastCall().times(3);
Nov 02 2009
Use EasyMock.expectLastCall() method to set expectation on void methods.
eg. mock.documentChanged(”Document”);
expectLastCall().times(3);
Apr 27 2009
The <portType> element is the most important WSDL element.
It describes a web service, the operations that can be performed, and the messages that are involved.
The <portType> element can be compared to a function library (or a module, or a class) in a traditional programming language.
The <message> element defines the data elements of an operation.
Each message can consist of one or more parts. The parts can be compared to the parameters of a function call in a traditional programming language.
The <types> element defines the data type that are used by the web service.
For maximum platform neutrality, WSDL uses XML Schema syntax to define data types.
The <binding> element defines the message format and protocol details for each port.
Apr 27 2009
Apr 23 2009
Axis2 deployment introduced the notion of a Java™ 2 Platform, Enterprise Edition (J2EE)-like deployment mechanism, where a developer can bundle all the class files, library files, resources files, and configuration files together as an archive file, and drop it to specified location in the file system.
The concept of hot deployment and hot update is not a new technical term (particularly for those versed in the concepts of a Web services platform), but for Apache Axis it is a new feature. Therefore Axis2 was developed by keeping room for “hot” deployment features.
Hot deployment: The capability of deploying service while system is up and running. System availability is very important in a realtime system or business environment. If the system is down even for a moment, the loss might be substantial and it may affect the lifetime of the business. However, in the meantime it is required to add new services to the system and if this can be done without shutting down the servers, that would be a great achievement. So Axis2 addresses that and provides web service hot deployment ability, where you do not need to shut down the system to deploy a new Web service. What needs to be done is to drop the required web service archive into the services directory in the repository. Then the deployment model will automatically deploy the service and make it available to you.
Hot update: The ability of making changes to an existing web service without shutting down the system. This is an important feature and required in a testing environment. However, it is not advisable to use hot update in real time system, because hot update could result in the system leading into an unknown state. Additionally, there is the possibility of loosening the existing service data of that service. To prevent this, Axis2 comes with the hot update parameter set to false by default.
Apr 19 2009
You will get a scrollable ResultSet object if you specify one of these ResultSet constants.The difference between the two has to do with whether a result set reflects changes that are made to it while it is open and whether certain methods can be called to detect these changes. Generally speaking, a result set that is TYPE_SCROLL_INSENSITIVE does not reflect changes made while it is still open and one that is TYPE_SCROLL_SENSITIVE does.