Nov 29, 2008

Installing & using SoapUI


Steps for installing and using SoapUI are as follows
  1. Install the Soap UI plug-in in eclipse or WebLogic Workshop
  2. Go to the Help > Software Updates > Find & Install
  3. Select for "Search for new features to install".
  4. Click Next button
  5. Click on "New Remote Site".
  6. Enter the name : SoapUI
  7. Enter url: http://www.soapui.org/eclipse/update/site.xml
  8. Click Finish
  9. SoapUI plug-in will be installed on system.
  10. After installation is complete, restart the workshop
  11. Go to Window > Open Perspective > Other
  12. Select SoapUI
  13. Right click on Project Icon on the left and create "New WSDL Project"
  14. Enter the project name
  15. Enter the WSDL location
  16. Click OK button
  17. Project will be created with entered name and all the projects exposed by WSDL will be visible under the + sign
  18. Click on + sign to view all the methods
  19. Double click on the method you want to test and click on Request 1 icon
  20. Enter the inputs required by the method and click on green play button on the top left.
  21. Based on entered input Response is generated on right pane.


Important Points about Threads in Java


  1. To synchronize threads, the Java programming language uses monitors, which are a high-level mechanism for allowing only one thread at a time to execute a region of code protected by the monitor.
  2. The behavior of monitors is explained in terms of locks; there is a lock associated with each object.
  3. The methods wait, notify, and notifyAll of class Object support an efficient transfer of control from one thread to another.
  4. A thread can suspend itself using wait until such time as another thread awakens it using notify.
  5. Each thread has a working memory, in which it may keep copies of the values of variables from the main memory that is shared between all threads.
  6. To access a shared variable, a thread usually first obtains a lock and flushes its working memory. This guarantees that shared values will thereafter be loaded from the shared main memory to the threads working memory.
  7. When a thread unlocks a lock it guarantees the values it holds in its working memory will be written back to the main memory.
  8. Every thread has a working memory in which it keeps its own working copy of variables that it must use or assign. As the thread executes a program, it operates on these working copies. The main memory contains the master copy of every variable.
  9. The main memory also contains locks; there is one lock associated with each object. Threads may compete to acquire a lock.