Home » Enterprise Java » ejb3

ejb3

Java Web Services Tutorial

In this article, we will demonstrate examples of Java Web Services. We will provide a brief introduction to the topic, followed by a SOAP and a REST example in Java. 1. Introduction From W3C’s definition we are able to infer that there a web service is a piece of software that satisfies 3 key requirements : The web service should ...

Read More »

Understanding WebLogic Web Service

1. Overview In this article, we will take a look at Weblogic Web Service examples. 2. WebLogic Web Service Using weblogic webservices framework, SOAP web services are built. SOAP is an acronym for Simple Object Access Protocol. SOAP is used for developing web services that are based on XML based industry-standard protocol. SOAP security is based on WS Security. SOAP web services ...

Read More »

SOAP Web Service Example in Java

1. Overview In this article, we will take a look at the SOAP Web Service examples. 2. SOAP Web Service Example Using Apache Axis, SOAP web services are built. SOAP is an acronym for Simple Object Access Protocol. SOAP is used for developing web services that are based on XML based industry-standard protocol. SOAP security is based on WS Security. SOAP web ...

Read More »

Introduction to Apache Wink

1. Overview In this article, we will take a look at the Apache Wink Web Service examples. Apache Wink 1.0 is a JAX-RS 1.0 compliant and it has features related to the coreJAX-RS specification. 2. Apache Wink Using Apache Wink, REST web services are built. REST is an acronym for “Representational State Transfer”. Roy Fielding was the first person to ...

Read More »

Apache CXF Web Service Example

In this article, we will implement an Apache CXF Web service example. Webservices can be developed using SOAP and REST. SOAP refers to Simple Object Access Protocol. REST stands for Representational State Transfer. 1. Overview Roy Fielding was the first person to come up with the REST architecture proposal. In REST, a Resource is a Uniform Resource Identifier or URI. The ...

Read More »

EJB Security Example

1. Introduction Developers using the Java EE platform achieve security through its built-in security APIs. There are two approaches to securing enterprise java applications, more specifically Enterprise Java Beans. These approaches are the programmatic approach and the declarative approach. The programmatic approach is the one which is meant to be used when one wants to have more control over how the application ...

Read More »

EJB Schedule Example

1. Introduction There are times when building enterprise software that the requirement is for the system to execute a particular business logic, such as creating and storing periodic business reports on remote FTP locations, sent weekly automated emails to a mailing list so on and so forth. This is why in the Java EE specification particularly the EJB specification there ...

Read More »

EJB Architecture Example

1. Introduction EJB stands for Enterprise Java Bean. An Enterprise Java Bean is in its basic form any POJO(Plain Old Java Object) that is registered with the container in which it is deployed. Enterprise Java Beans are deployed into an EJB container. The EJB container is governed by the EJB specification. At the time of writing this article, the latest version ...

Read More »

EJB Deployment Descriptor Example

1. Introduction Deployment descriptor is the file which tells the EJB server that which classes make up the bean implementation, the home interface and the remote interface. it also indicates the behaviour of one EJB with other. The deployment descriptor is generally called as ejb-jar.xml and is in the directory META-INF of the client application. This is the main deployment ...

Read More »

EJB Life Cycle Example

1. The LifeCycle of EJB The various stages through which an enterprise bean go through its lifetime is known as the life cycle of EJB. Each type of enterprise bean (stateful session, stateless session, singleton session, or message-driven) has a different lifecycle. 2. Life Cycle of a Stateful Session Bean The following figure shows the life cycle of a stateful ...

Read More »