Professional Documents
Culture Documents
1. What is JTS?
A. JTS (JAVA TRANSACTION SERVICE) is the java implementation of CORBA’s
OTS (OBJECT TRANSACTION SERVICE).
2. What is JTA?
A. JTA (JAVA TRANSACTION API) is the API released by java soft under J2EE.
It was released after the release of JTS.
3. what are the advantages of JTA over JTS?
A. JTA (JAVA TRANSACTION API) is more flexible and simple to use by the
As a programmer using JTA he has to concentrate on high-level x/open interface .The low-level XA operations
are taken care by the server, which is giving the implementation to JTA API.The, user will never perform XA
operations directly. This makes the user simpler to manipulate with transactions.
17
A message-driven bean is an asynchronous message consumer. The container as a result of the arrival of a JMS
message invokes a message-driven bean. A message-driven bean has neither a home nor a remote interface. A
message-driven bean instance is an instance of a message-driven bean class. To a client, a message-driven bean is a
JMS message consumer that implements some business logic running on the server. A client accesses a message-
driven bean through JMS by sending messages to the JMS Destination (Queue or Topic) for which the message-
driven bean class is the Message Listener. Message-driven bean instances have no conversational state. This means
that all bean instances are equivalent when they are not involved in servicing a client message. Message-driven
beans are anonymous. They have no client-visible identity.A message-driven bean instance is created by the
container to handle the processing of the messages for which the message-driven bean is the consumer. Its
lifetime is controlled by the container. A message-driven bean instance has no state for a specific client. However,
the instance variables of the message-driven bean instance can contain state across the handling of client
messages. Examples of such state include an open database connection and an object reference to an EJB object.
Goals The goal of the message-driven bean model is to make developing an enterprise bean that is asynchro-nously
invoked to handle the processing of incoming JMS messages as simple as developing the same functionality in any
other JMS MessageListener.A further goal of the message-driven bean model is to allow for the concurrent
processing of a stream of messages by means of container-provided pooling of message-driven bean instances.
While the EJB 2.0 specification requires support for only JMS-based messaging, a future goal
of the message-driven bean model is to provide support for other types of messaging in addi-tion
to JMS, and to allow for message-driven beans that are written to their APIs.
5.what is DGC?
A. Distributed Garbage Collection is server side algorithm. It contains two methods those are dirty () and
clean ().
A. Remote stub uses a remote references to carry out a remote method invocation to a Remote Object.
A. The function needs to create and export remote objects (to make them remotely available)
A.1099.
A.
A.
21.ping:-
22.narrow :-
Checks to ensure that an object of a remote or abstract interface type can be cast to a desired type.
25.what is the JNDI [java Naming and Directory Interface] ? what its provides?
A.Colon-separated Object list of ContextFactory to use during invocation of naming and directory service
operation
A.Colon separated list of state factory used to get an object’s state given a reference to the object
29. DNS-URL
A. URL defining the DNS host to use for Addresses associated with JNDI urls
30.Authoritative
A. Value of true indicates that service access offers the most
authoritative source
31.BatchSize:-