EJB

Create Entity Manager in JPA Tutorial

The Entity Classes It is easy to transform a POJO into an entity class via annotation. In fact, a single annotation, @Entity, is enough to designate any POJO as an entity class. For example, examine a regular class such as follows: public class Book {   private int id;   private String title; private String publisher; public Book() {} public Book(int...

Understanding Java Support for Persistence with JPA

Enterprise applications often deal with operations such as the collecting, processing, transforming, and reporting of a large amount of data. These data are typically stored in a database server in a particular location and retrieved on demand. The application is responsible for processing the data from the database and finally present them for client consumption. But, the intricacies involved in mitigating the data exchange...

How to Start JShell in Netbeans 9

JShell is an interactive shell for evaluating Java code snippets; this includes variables, expressions, statements, classes, methods, and other Java constructs. Java code snippets do not have to be evaluated in any context. For example, variable and method declarations may be created without creating a class. Top-level code snippets are distinguished from code snippets within enums, classes, and interfaces. Some JShell-specific commands are provided...

Using Module Dependencies, Part 1

A module could depend on other modules. If a module depends on another module, it is said to have a dependency on the other module. The Declaring Dependency on Other Modules section in the tutorial "Developing a Module with Java 9 in Eclipse IDE, Part 1" introduces module dependency. In a subsequent tutorial, "Developing a Module with Java 9 in Eclipse IDE, Part 2,"...

Creating Standalone Web Applications with Spring Boot

Spring's Web framework provides necessary tools to build a Web application that addresses concerns such as state management, workflow, validation, and many other important aspects that are specific to Web application development. This article walks through an example of developing a CRUD-based, simple Web application that uses technologies such as REST and JPA while building it from scratch. Overview The basis of Web development in Spring...

What Is Spring Boot?

The Spring framework has garnered the interest of the Java developer's community for over a decade as a lightweight alternative to EJB. It soon picked up as a de facto standard for numerous Web enterprise developments. The recent introduction of the Spring Boot project into the family of Spring has revolutionised the way a production-ready application is developed. Spring Boot enables developers to focus...

A Step-by-step Guide to Creating NetBeans Web Apps

Web application refers to a software solution that is deployed in a server and can be accessed online through a Web browser. These types of applications typically intertwine more than one technology; creating one from scratch has numerous approaches. The basic idea is that one must have a good understanding of the technologies involved and programming practices like MVC. NetBeans as an IDE provides...

A Guide to the Java Spring Framework

Spring incepted as an alternative to the EJB's stringent rules of enterprise Java development with the flagship technique of dependency injection and AOP. This idea quickly garnered the interest of the developers who were already looking for an alternative solution. Today, Spring 4 has evolved into an umbrella of technology with a stack of technological features such as JDBC, ORM, Web Socket, Servlet, Portlet,...

Introducing JEE Application Session Beans

Session beans represent the core business service objects that typically encapsulates business logic in an enterprise application. It is a Java component that either executes in a stand-alone EJB container or in a container that is a part of JEE application server. Session beans are generally used to model tasks that get user information from a client interface. The business logic associated with session...

Managing Transactions with EJB

The infrastructural support for managing transactions is one of the major services provided by the EJB container. It has been an emphatic effort on the part of the EJB framework to provide a convenient way to manage transactions and access control since its inception in the Java language. The built-in mechanism has the capability to roll each method with a declarative metadata to manipulate...

Latest Articles