heartin's blog

SOAP and EJB Quick Reference for Java EE 6 Web Services Certification Exam 1z0-897

EJBs can serve as endpoints for SOAP based web services if hosted in a container with runtime and service support. New client applications can then be built using the published WSDL to access existing business logic. New remote clients can also continue to access business logic using RMI. Thus clients will have now a choice to use RMI or web services to access the business logic.

There are primarily four types of EJBs:

  • Stateful session bean

SOAP Message Handlers Quick Reference for Java EE 6 Web Services Certification Exam 1z0-897

SOAP message handlers enable Web Services and clients to perform additional processing on the SOAP message request or response, by intercepting the SOAP message in both the request and response of the Web Service. 


SOAP handlers and logical handlers

  • JAX-WS supports two types of SOAP message handlers:

    • SOAP handlers

Introduction to Spring MVC

The Spring MVC framework provides model-view-controller architecture and also provides many components that can be used to develop web applications. 


Model-view-controller (MVC)

  • Model-view-controller (MVC) is a software architectural pattern for implementing web applications with user interfaces.

  • MVC decouples business logic from UIs.

[Example-Lab] Eager and Lazy Fetch Types in Hibernate 4.3

We will see a simple example to illustrate the LAZY and EAGER Fetch in Hibernate.

[Example-Lab] Embedding Value Types Within an Entity Class in Hibernate 4.3

A value type is a type which doesn't have existence of its own, but belongs to an entity, like an user and his address. Value types are always completely owned by their containing entity.

We will embed an Address class inside a User class. The simplest way to embed a value type in an entity class is to treat the member variables of the embedded class (e.g. Address), the same way as we treat the member variables of the embedding class (e.g. User) by adding more columns to the entity table one column each for the value type class members

[Lab-Analysis] Creating a Soap Web Service Bottoms Up Using Java SE Endpoint Publisher

We will further analyze the lab excercise done @ http://javajee.com/lab-creating-a-soap-web-service-bottoms-up-using-endp....


Service Endpoint Interface (SEI)

We had used the below SEI for creating the web service:

package com.javajee.ws.tsexample1;

public interface TimeService
         String getTimeFromServer();


[Resources] Useful Resources for Learning About Web Services

Knowledge of HTTP, Servlets and Servers

We will be focussing on learning about web services with HTTP as the transport protocol and will be deploying web services on web containers as well as application servers . So a decent knowledge about these are good to have.

You can learn more about these @ http://javajee.com/java-ee-web-components-part1-http-and-servlets.


Important Annotations for Developing SOAP Web Services

While creating a web service bottom up, we can configure the SEI and SIB to act as a web service using annotations. In case of bottom up web service, the binding properties in a WSDL can be specified using these annotations.


Summary of common annotations used to create web services


@WebService annotation 

  • May be used on:

    • SEI to denote that it is a Web Service interface

[Coming Soon] Upcoming Topics in the Note Book: Introduction to Web Services

  1. Installing and configuring Glassfish application server

  2. Deploying web services in Glassfish application server.

  3. Top down web service development example.

  4. Examples for other Message Exchange Patterns.

  5. Examples for different ways to import or link XSD to WSDL.

  6. Notes on simple types and complex types in XSDs

  7. Notes in content type headers.

  8. Examples for DOM, SAX and StaX parsing

  9. More about webservices.xml

Deploying a Bottom-Up Web Service in Tomcat Web Container

A web container like tomcat can deploy servlets, jsps and web services.


Important points about deploying bottum up web services in Tomcat

  • Web components are generally deployed in the web container as war files.

    • These war files might contain standard configuration files such as web.xml and vendor specific configuration files such as sun-jaxws.xml.


Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!