Advance Java Overview
Advance Java Overview
RMI:
The Java Remote Method Invocation (RMI) system allows an object running
in one Java Virtual Machine (VM) to invoke methods on an object running in
another Java Virtual Machine.
RMI functionalities come in a java.rmi package and provide a distributed
object capability for Java-based applications.
RMI is the Java version of what is generally known as a remote procedure
call (RPC), but with the ability to pass one or more objects along with the
request. The object can include information that will change the service that is
performed in the remote computer.
A Remote Reference Layer that can behave differently depending on the parameters
passed by the calling program. For example, this layer can determine whether the
request is to call a single remote service or multiple remote programs as in a multicast.
2.EJB:
EJB is an acronym for enterprise java bean. It is a specification provided by Sun
Microsystems to develop secured, robust and scalable distributed applications.
EJB application is deployed on the server, so it is called server side component.
Message Driven Bean:Like Session Bean, it contains the business logic but it is
invoked by passing message.
Entity Bean: It encapsulates the state that can be persisted in the database. It is
deprecated. Now, it is replaced with JPA (Java Persistent API).
Disadvantages of EJB
1. Requires application server
2. Requires only java client. For other language client, you need to go for web
service.
3. Complex to understand and develop ejb applications.
3.JNDI:
NDI (Java Naming and Directory Interface) enables Java platform-based
applications to access multiple naming and directory services. Part of the
Java Enterprise application programming interface (API) set.
JNDI makes it possible for developers to create portable applications that are
enabled for a number of different naming and directory services, including: file
systems; directory services such as LDAP and distributed object systems
such as Java Remote Method Invocation (RMI), and Enterprise JavaBeans
(EJB).
JNDI implementation:-
LDAP: it is a lightweight version of DAP (Directory Access Protocol), which in turn is
part of X.500, a standard for network directory services
COS: Common Object Services Naming: The naming service for CORBA applications;
allows applications to store and access references to CORBA objects.
DNS: The Internet's naming service.
NIS. Network naming services, allow users to access files and applications on any
host with a single ID and password.
4.JTA:
5.JAAS:-
6.JMS:-
With this in mind, the JMS message model has the following goals:
7.JAVA Mail:-
javax.mail.Session class
javax.mail.Message class
javax.mail.internet.MimeMessage class
javax.mail.Address class
javax.mail.internet.InternetAddress classes are used.