Programming Archive

Tutorial of how to call Enterprise Java Beans (EJB) from a Java Servlet : Injecting EJB into Servlet

This tutorial assumes that you have an EnterpriseJavaBean (EJB) deployed on a J2EE Application Server as well as a working Web Servlet if not. Please go through the following tutorials: We have used JBoss 7.1 with Eclipse J2EE for the course of this tutorial. Exporting JAR for EJB To call the methods ...Read More

Tutorial of how to invoke or call Enterprise Java Beans (EJB) from a Java Application Client

As defined in the tutorial above, an EJB is a re-usable and managed component deployed on J2EE Application Server such as JBoss. This tutorial is aimed to illustrate how to invoke the functionalities of an already deployed Enterprise Java Bean Tutorial. 1. Importing JAR file for EJB To invoke the methods of ...Read More

Hello Word ! Tutorial for Writing Stateless Session Enterprise Java Bean ( EJB )

EnterpriseJava Beans ( EJB ) is a specification  or set of APIs  for creating managed components that can be deployed on a server-side for Enterprise Application using Java Language. In this tutorial, we will show you how to create a stateless session bean using JBoss AS 7.1 and Eclipse J2EE.  Stateless Session ...Read More

Simple Servlet and JSP Examples using Eclipse and JBoss AS

Servlets provide a component-based, platform-independent method for building Web-based applications, without the performance limitations of CGI or PHP programs. Servlets have access to the entire family of Java APIs, including the JDBC API to access enterprise databases. JSP  ( Java Server Pages )technology is used to create web application just like Servlet ...Read More

Simple Introduction for XML

XML stands for eXtensible Markup Language. XML is designed to transport and store data. The main points that you need to know about XML: XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display data XML tags are not ...Read More

Tutorial for CORBA Hello World using Java

The Common Object Request Broker Architecture (CORBA) is a standard developed by the Object Management Group (OMG) to provide interoperability among distributed objects. CORBA is the world’s leading middleware solution enabling the exchange of information, independent of hardware platforms, programming languages, and operating systems. CORBA is essentially a design specification for an ...Read More

Java RMI Example : Group Chat Implementation

If you are new to Java RMI, you are strongly advised to follow a step by step tutorial at the link below: The aim of this tutorial is to take through a motivating example of getting multiple users to chat with each other from different PC. We will be creating a chat ...Read More

Java RMI Example : Simple Chat Program between Server and Client

In this tutorial, we will create a simple chat program using two users. One user will be chatting from the server side, whilst the other user would be chatting from the client side of the RMI application. The structure of the files for the projects created using Eclipse throughout this tutorials is ...Read More

Common Errors for Running RMI Hello World!

Here are a suggested list of the common errors that you would get when running a simple Hello World for Java RMI. Error 1: When running the rmiregistry, you would get error: To fix this error you need to configure the variable Path to include the bin folder of your JDK. Error ...Read More

A Step by Step Implementation Tutorial for Java RMI

In this RMI Programming tutorial, we will learn how to create : Simple Remote Object. Server to instantiate (create ) and bind a remote object. Client to invoke remotely an object As RMI is a Java to Java only communication protocol, you need to install the Java Development Kit ( JDK ) ...Read More