InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 101. |
What Is The Main Functionality Of The Remote Reference Layer ? |
|
Answer» RRL exists in both the RMI CLIENT and server. It is used by the stub or SKELETON protocol layer and USES the transport layer. RRL is reponsible for transport-independent functioning of RMI, such as connection management or unicast/multicast OBJECT invocation. RRL exists in both the RMI client and server. It is used by the stub or skeleton protocol layer and uses the transport layer. RRL is reponsible for transport-independent functioning of RMI, such as connection management or unicast/multicast object invocation. |
|
| 102. |
Explain Lazy Activation? |
|
Answer» LAZY activation: This MEANS that the ACTIVABLE remote object will be activated by rmid (default). This activation is performed only when the first remote METHOD call is intercepted. Lazy activation: This means that the activable remote object will be activated by rmid (default). This activation is performed only when the first remote method call is intercepted. |
|
| 103. |
Does Rmi-iiop Support Dynamic Downloading Of Classes? |
|
Answer» No, RMI-IIOP doesn't support dynamic downloading of the classes as it is DONE with CORBA in DII (Dynamic Interface Invocation).Actually RMI-IIOP combines the USABILITY of Java REMOTE Method Invocation (RMI) with the interoperability of the Internet Inter-ORB PROTOCOL (IIOP).So in order to attain this interoperability between RMI and CORBA,some of the features that are supported by RMI but not CORBA and vice versa are eliminated from the RMI-IIOP specification. No, RMI-IIOP doesn't support dynamic downloading of the classes as it is done with CORBA in DII (Dynamic Interface Invocation).Actually RMI-IIOP combines the usability of Java Remote Method Invocation (RMI) with the interoperability of the Internet Inter-ORB Protocol (IIOP).So in order to attain this interoperability between RMI and CORBA,some of the features that are supported by RMI but not CORBA and vice versa are eliminated from the RMI-IIOP specification. |
|
| 104. |
How Many Types Of Protocol Implementations Does Rmi Have? |
|
Answer» RMI has at least three protocol implementations: Java Remote Method Protocol(JRMP), Internet Inter ORB Protocol(IIOP), and Jini Extensible Remote Invocation(JERI). These are alternatives, not part of the same thing, All three are INDEED LAYER 6 protocols for those who are still speaking OSI REFERENCE MODEL. RMI has at least three protocol implementations: Java Remote Method Protocol(JRMP), Internet Inter ORB Protocol(IIOP), and Jini Extensible Remote Invocation(JERI). These are alternatives, not part of the same thing, All three are indeed layer 6 protocols for those who are still speaking OSI reference model. |
|
| 105. |
Does Rmi-iiop Support Code Downloading For Java Objects Sent By Value Across An Iiop Connection In The Same Way As Rmi Does Across A Jrmp Connection? |
|
Answer» YES. The JDK 1.2 and above support the dynamic class LOADING. Yes. The JDK 1.2 and above support the dynamic class loading. |
|
| 106. |
What Are The Services In Rmi ? |
|
Answer» An RMI "SERVICE" COULD WELL be any Java METHOD that can be invoked remotely. The other service is the JRMP RMI naming service which is a lookup service. An RMI "service" could well be any Java method that can be invoked remotely. The other service is the JRMP RMI naming service which is a lookup service. |
|
| 107. |
What Is The Difference Between Rmi & Corba ? |
|
Answer» The most significant difference between RMI and CORBA is that CORBA was made specifically for interoperability across programming languages. That is CORBA fosters the notion that programs can be built to interact in multiple languages. The server could be WRITTEN in C++, the business logic in Python, and the front-end written in COBOL in theory. RMI, on the other hand is a total Java solution, the interfaces, the implementations and the clients--all are written in Java. RMI ALLOWS dynamic loading of classes at runtime. In a multi-language CORBA environment, dynamic class loading is not POSSIBLE. The important advantage to dynamic class loading is that it allows ARGUMENTS to be passed in remote invocations that are subtypes of the declared types. In CORBA, all types have to be known in ADVANCE. RMI (as well as RMI/IIOP) provides support for polymorphic parameter passing, whereas strict CORBA does not. CORBA does have support for multiple languages which is good for some applications, but RMI has the advantage of being dynamic, which is good for other applications. The most significant difference between RMI and CORBA is that CORBA was made specifically for interoperability across programming languages. That is CORBA fosters the notion that programs can be built to interact in multiple languages. The server could be written in C++, the business logic in Python, and the front-end written in COBOL in theory. RMI, on the other hand is a total Java solution, the interfaces, the implementations and the clients--all are written in Java. RMI allows dynamic loading of classes at runtime. In a multi-language CORBA environment, dynamic class loading is not possible. The important advantage to dynamic class loading is that it allows arguments to be passed in remote invocations that are subtypes of the declared types. In CORBA, all types have to be known in advance. RMI (as well as RMI/IIOP) provides support for polymorphic parameter passing, whereas strict CORBA does not. CORBA does have support for multiple languages which is good for some applications, but RMI has the advantage of being dynamic, which is good for other applications. |
|
| 108. |
Normally In The Java Programming Language, It Is Possible To Cast An Interface Instance To An Instance Of The Class From Which It Was Created And Use The Result. Why Doesn't This Work In Rmi? |
|
Answer» In RMI the CLIENT sees only a stub for the original object. The stub implements only the remote interfaces and their remote METHODS and cannot be cast back to the original implementation CLASS because it's just a stub. So, you cannot PASS a remote object reference from a server to a client, and then send it back to the server and be able to cast it back to the original implementation class. You can, though, use the remote object reference on the server to make a remote call to the object. If you need to find the implementation class again, you'll need to KEEP a table that maps the remote reference to the implementation class. In RMI the client sees only a stub for the original object. The stub implements only the remote interfaces and their remote methods and cannot be cast back to the original implementation class because it's just a stub. So, you cannot pass a remote object reference from a server to a client, and then send it back to the server and be able to cast it back to the original implementation class. You can, though, use the remote object reference on the server to make a remote call to the object. If you need to find the implementation class again, you'll need to keep a table that maps the remote reference to the implementation class. |
|
| 109. |
Does Rmi Handle "out" And "inout" Parameters (like Corba)? |
|
Answer» RMI does not support "out" or "INOUT" parameters, just LIKE the rest of the CORE JAVA programming language. All remote calls are methods of a remote object. Local objects are passed by COPY and remote objects are passed by reference to a stub. RMI does not support "out" or "inout" parameters, just like the rest of the core Java programming language. All remote calls are methods of a remote object. Local objects are passed by copy and remote objects are passed by reference to a stub. |
|
| 110. |
Why Do I Get The Exception "java.net.socketexception: Address Already In Use" When I Try To Run The Registry? |
|
Answer» This EXCEPTION MEANS that the port that the RegistryImpl uses (by default 1099) is already in use. You MAY have another registry RUNNING on your machine and will need to STOP it. This exception means that the port that the RegistryImpl uses (by default 1099) is already in use. You may have another registry running on your machine and will need to stop it. |
|
| 111. |
How Do Rmi Clients Contact Remote Rmi Servers? |
|
Answer» For an RMI client to contact a REMOTE RMI server, the client must FIRST hold a reference to the server. The Naming.lookup method call is the most common mechanism by which clients initially obtain references to remote servers. Remote references may be obtained by other means, for example: all remote method calls can return remote references. This is what Naming.lookup does; it uses a well-known stub to make a remote method call to the rmiregistry, which sends back the remote reference to the object requested by the lookup method. Every remote reference contains a server HOSTNAME and port number that allow clients to locate the VM that is serving a PARTICULAR remote object. Once an RMI client has a remote reference, the client will use the hostname and port provided in the reference to open a socket CONNECTION to the remote server. Please note that with RMI the terms client and server can refer to the same program. A Java program that acts as an RMI server contains an exported remote object. An RMI client is a program that invokes one or more methods on a remote object in another virtual machine. If a VM performs both of these functions, it may be referred to as an RMI client and an RMI server. For an RMI client to contact a remote RMI server, the client must first hold a reference to the server. The Naming.lookup method call is the most common mechanism by which clients initially obtain references to remote servers. Remote references may be obtained by other means, for example: all remote method calls can return remote references. This is what Naming.lookup does; it uses a well-known stub to make a remote method call to the rmiregistry, which sends back the remote reference to the object requested by the lookup method. Every remote reference contains a server hostname and port number that allow clients to locate the VM that is serving a particular remote object. Once an RMI client has a remote reference, the client will use the hostname and port provided in the reference to open a socket connection to the remote server. Please note that with RMI the terms client and server can refer to the same program. A Java program that acts as an RMI server contains an exported remote object. An RMI client is a program that invokes one or more methods on a remote object in another virtual machine. If a VM performs both of these functions, it may be referred to as an RMI client and an RMI server. |
|
| 112. |
Explain About Rmi And It's Usage? |
|
Answer» RMI is one of the distributed computing technology alternative powered by Java . RMI stands for Remote Method Invocation ,to keep it SIMPLE it means accessing a service from DIFFERENT node ( i.e., accessing a service provided by an object on server machine , here an object in client JVM talks with object in the server JVM ). Java provides an API and base some classes ( in package java.rmi ) to perform these kind of OPERATIONS . We basically use this methodology when we need to publish an object at server side which exposes set of services ( as methods in Object oriented programming TERMINOLOGY ) and where in one or more clients access these services from remote machines. By this we are distibuting a common code in TWO different JVM's and we are able to access the code on different JVM. RMI is one of the distributed computing technology alternative powered by Java . RMI stands for Remote Method Invocation ,to keep it simple it means accessing a service from different node ( i.e., accessing a service provided by an object on server machine , here an object in client JVM talks with object in the server JVM ). Java provides an API and base some classes ( in package java.rmi ) to perform these kind of operations . We basically use this methodology when we need to publish an object at server side which exposes set of services ( as methods in Object oriented programming terminology ) and where in one or more clients access these services from remote machines. By this we are distibuting a common code in two different JVM's and we are able to access the code on different JVM. |
|
| 113. |
Explain Rmi Architecture? |
|
Answer» RMI uses a LAYERED architecture, each of the layers could be enhanced or replaced without affecting the rest of the system. The DETAILS of layers can be summarised as follows: Application LAYER: The client and SERVER program Stub & Skeleton Layer: Intercepts method calls made by the client/redirects these calls to a remote RMI service. Remote Reference Layer: Understands how to interpret and manage references made from clients to the remote service objects. Transport layer: Based on TCP/IP connections between machines in a network. It provides basic CONNECTIVITY, as well as some firewall penetration strategies. RMI uses a layered architecture, each of the layers could be enhanced or replaced without affecting the rest of the system. The details of layers can be summarised as follows: Application Layer: The client and server program Stub & Skeleton Layer: Intercepts method calls made by the client/redirects these calls to a remote RMI service. Remote Reference Layer: Understands how to interpret and manage references made from clients to the remote service objects. Transport layer: Based on TCP/IP connections between machines in a network. It provides basic connectivity, as well as some firewall penetration strategies. |
|
| 114. |
How Do You Optimize Java Message Service (jms)? |
|
Answer» • Start producer CONNECTION after you start consumer. • Start producer connection after you start consumer. |
|
| 115. |
How Do You Optimize Message Driven Beans? |
|
Answer» • Tune the Message driven beans POOL size to PROMOTE concurrent processing of messages. • Tune the Message driven beans pool size to promote concurrent processing of messages. |
|
| 116. |
How Do You Optimize Entity Beans? |
|
Answer» • Tune the ENTITY beans pool size to avoid overhead of creation and destruction of beans. • Tune the entity beans pool size to avoid overhead of creation and destruction of beans. |
|
| 117. |
How Do You Optimize Stateful Session Beans? |
|
Answer» • Tune Stateful SESSION beans CACHE size to avoid overhead of activation and passivation process. • Tune Stateful session beans cache size to avoid overhead of activation and passivation process. |
|
| 118. |
How Do You Optimize Stateless Session Beans? |
|
Answer» • Tune the Stateless SESSION beans POOL size to avoid OVERHEAD of creation and destruction of beans. • Tune the Stateless session beans pool size to avoid overhead of creation and destruction of beans. |
|
| 119. |
What Are Common Optimizing Practices For Ejb? |
|
Answer» • Use Local interfaces that are available in EJB2.0 if you deploy both EJB Client and EJB in the same EJB Server. • Use Local interfaces that are available in EJB2.0 if you deploy both EJB Client and EJB in the same EJB Server. |
|
| 120. |
How Do You Optimize A Jsp Page? |
|
Answer» • Use JSPINIT() method to cache static data • Use jspInit() method to cache static data |
|
| 121. |
How Do You Optimize Servlets? |
|
Answer» • Use init() method to cache static data. • Use init() method to cache static data. |
|
| 122. |
How Will You Optimize Performance In Jdbc? |
|
Answer» • Use batch transactions. • Use batch transactions. |
|
| 123. |
How Do You Optimize Exceptions? |
|
Answer» • Be specific while handling the exception in your catch block. • Be specific while handling the exception in your catch block. |
|
| 124. |
How Do You Optimize Io? |
|
Answer» • Use Buffered IO classes. • Use Buffered IO classes. |
|
| 125. |
How Do You Optimize Threads? |
|
Answer» • Avoid synchronization where possible • Avoid synchronization where possible |
|
| 126. |
How Do You Optimize Arrays, Vectors And Collections? |
|
Answer» • Create copies of simple array by initializing them through loops or by using System.arraycopy(), create copies of COMPLEX arrays by cloning them. • Create copies of simple array by initializing them through loops or by using System.arraycopy(), create copies of complex arrays by cloning them. |
|
| 127. |
How Do You Optimize Strings? |
|
Answer» • Use StringBuffer instead of STRING concat '+' operator • Use StringBuffer instead of String concat '+' operator |
|
| 128. |
How Do You Optimize Loops And Conditional Statements? |
|
Answer» • Reduce the number of temporary objects being used,especially in loops. • Reduce the number of temporary objects being used,especially in loops. |
|
| 129. |
How Do You Optimize Methods In A Class? |
|
Answer» • Avoid creating temporary objects WITHIN frequently called methods. • Avoid creating temporary objects within frequently called methods. |
|
| 130. |
H:inputsecret Field Becomes Empty When Page Is Reloaded. How To Fix This? |
|
Answer» SET redisplay=true, it is FALSE by DEFAULT. Set redisplay=true, it is false by default. |
|
| 131. |
Is It Possible To Have More Than One Faces Configuration File? |
|
Answer» Yes. You can define the list of the configuration FILES in the web.xml. Yes. You can define the list of the configuration files in the web.xml. |
|
| 132. |
What Is The Different Between Getrequestparametermap() And Getrequestparametervaluesmap() |
|
Answer» getRequestParameterValuesMap() SIMILAR to getRequestParameterMap(), but contains MULTIPLE VALUES for for the parameters with the same name. It is important if you one of the components such as <h:selectMany>. getRequestParameterValuesMap() similar to getRequestParameterMap(), but contains multiple values for for the parameters with the same name. It is important if you one of the components such as <h:selectMany>. |
|
| 133. |
How To Show Confirmation Dialog When User Click The Command Link? |
|
Answer» h:commandLink assign the ONCLICK attribute for internal use. So, you cannot use it to write your own code. This problem will fixed in the JSF 1.2. For the current JSF version you can use onmousedown event that OCCURS before onclick. <script LANGUAGE="javascript"> function ConfirmDelete(link) { VAR delete = CONFIRM('Do you want to Delete?'); if (delete == true) { link.onclick(); } } </script> . . . . <h:commandLink action="delete" onmousedown="return ConfirmDelete(this);"> <h:outputText value="delete it"/> </h:commandLink> h:commandLink assign the onclick attribute for internal use. So, you cannot use it to write your own code. This problem will fixed in the JSF 1.2. For the current JSF version you can use onmousedown event that occurs before onclick. <script language="javascript"> function ConfirmDelete(link) { var delete = confirm('Do you want to Delete?'); if (delete == true) { link.onclick(); } } </script> . . . . <h:commandLink action="delete" onmousedown="return ConfirmDelete(this);"> <h:outputText value="delete it"/> </h:commandLink> |
|
| 134. |
How To Reload The Page After Valuechangelistener Is Invoked? |
|
Answer» At the END of the VALUECHANGELISTENER, CALL FacesContext.getCurrentInstance().renderResponse() At the end of the ValueChangeListener, call FacesContext.getCurrentInstance().renderResponse() |
|
| 135. |
How To Access Web.xml Init Parameters From Java Code? |
|
Answer» You can get it USING externalContext getInitParameter METHOD. For example, if you have: You can get it using externalContext getInitParameter method. For example, if you have: |
|
| 136. |
How To Get Current Page Url From Backing Bean? |
|
Answer» You can get a reference to the HTTP request object via FacesContext like this: FacesContext fc = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest) fc.getExternalContext().getRequest(); And then use the NORMAL request METHODS to OBTAIN path information. Alternatively, You can get a reference to the HTTP request object via FacesContext like this: FacesContext fc = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest) fc.getExternalContext().getRequest(); And then use the normal request methods to obtain path information. Alternatively, |
|
| 137. |
How To Add Context Path To Url For Outputlink? |
|
Answer» Current JSF implementation does not ADD the CONTEXT path for OUTPUTLINK if the defined path STARTS with '/'. To correct this problem use #{facesContext.externalContext.requestContextPath} prefix at the beginning of the outputLink value attribute. For example: Current JSF implementation does not add the context path for outputLink if the defined path starts with '/'. To correct this problem use #{facesContext.externalContext.requestContextPath} prefix at the beginning of the outputLink value attribute. For example: |
|
| 138. |
What Is Javaserver Faces? |
|
Answer» JavaServer Faces (JSF) is a user interface (UI) FRAMEWORK for Java web applications. It is designed to significantly ease the burden of writing and maintaining applications that run on a Java application server and render their UIs back to a target client. JSF provides ease-of-use in the following ways: Makes it easy to construct a UI from a set of reusable UI components Simplifies migration of application DATA to and from the UI Helps manage UI state across server requests Provides a simple model for wiring client-generated events to server-side application code Allows custom UI components to be easily built and re-used . Most IMPORTANTLY, JSF establishes standards which are designed to be leveraged by tools to provide a developer experience which is accessible to a wide variety of developer types, ranging from corporate developers to systems programmers. A "corporate developer" is characterized as an individual who is proficient in writing procedural code and business logic, but is not necessarily skilled in object-oriented PROGRAMMING. A "systems programmer" understands object-oriented fundamentals, including abstraction and DESIGNING for re-use. A corporate developer typically relies on tools for development, while a system programmer may define his or her tool as a text editor for writing code. Therefore, JSF is designed to be tooled, but also exposes the framework and programming model as APIs so that it can be used outside of tools, as is sometimes required by systems programmers. JavaServer Faces (JSF) is a user interface (UI) framework for Java web applications. It is designed to significantly ease the burden of writing and maintaining applications that run on a Java application server and render their UIs back to a target client. JSF provides ease-of-use in the following ways: Makes it easy to construct a UI from a set of reusable UI components Simplifies migration of application data to and from the UI Helps manage UI state across server requests Provides a simple model for wiring client-generated events to server-side application code Allows custom UI components to be easily built and re-used . Most importantly, JSF establishes standards which are designed to be leveraged by tools to provide a developer experience which is accessible to a wide variety of developer types, ranging from corporate developers to systems programmers. A "corporate developer" is characterized as an individual who is proficient in writing procedural code and business logic, but is not necessarily skilled in object-oriented programming. A "systems programmer" understands object-oriented fundamentals, including abstraction and designing for re-use. A corporate developer typically relies on tools for development, while a system programmer may define his or her tool as a text editor for writing code. Therefore, JSF is designed to be tooled, but also exposes the framework and programming model as APIs so that it can be used outside of tools, as is sometimes required by systems programmers. |
|
| 139. |
What Is The Difference Between Point To Point And Publish/subscribe Messaging Domains? |
|
Answer» A point-to-point (PTP) product or application is built around the concept of message queues, senders, and receivers. Each message is addressed to a specific queue, and receiving clients extract messages from the queue(s) established to hold their messages. Queues retain all messages sent to them until the messages are consumed or until the messages expire. In a publish/subscribe (pub/sub) product or application, clients ADDRESS messages to a topic. Publishers and SUBSCRIBERS are generally anonymous and may dynamically publish or subscribe to the content HIERARCHY. The system takes CARE of distributing the messages arriving from a topic's multiple publishers to its multiple subscribers. Topics retain messages only as long as it takes to distribute them to current subscribers. A point-to-point (PTP) product or application is built around the concept of message queues, senders, and receivers. Each message is addressed to a specific queue, and receiving clients extract messages from the queue(s) established to hold their messages. Queues retain all messages sent to them until the messages are consumed or until the messages expire. In a publish/subscribe (pub/sub) product or application, clients address messages to a topic. Publishers and subscribers are generally anonymous and may dynamically publish or subscribe to the content hierarchy. The system takes care of distributing the messages arriving from a topic's multiple publishers to its multiple subscribers. Topics retain messages only as long as it takes to distribute them to current subscribers. |
|
| 140. |
What Is The Diffrence Between Java Mail And Jms Queue? |
|
Answer» Java Mail - API siting on TOP of e-mail protocols like SMTP, POP, IMAP - essentially same STUFF e-mail clients like MS outlook use .. hence make sense if at least on one SIDE of conversation we have human. Java Mail - API siting on top of e-mail protocols like SMTP, POP, IMAP - essentially same stuff e-mail clients like MS outlook use .. hence make sense if at least on one side of conversation we have human. |
|
| 141. |
What Is The Difference Between Ic And Queue? |
|
Answer» A ic is TYPICALLY USED for ONE to MANY messaging i.e. it supports publish subscribe model of messaging. While queue is used for one-to-one messaging i.e. it supports Point to Point Messaging. A ic is typically used for one to many messaging i.e. it supports publish subscribe model of messaging. While queue is used for one-to-one messaging i.e. it supports Point to Point Messaging. |
|
| 142. |
What Are The Three Components Of A Message ? |
|
Answer» A JMS message consists of three parts: Message header Properties Body A JMS message consists of three parts: Message header Properties Body |
|
| 143. |
What Kind Of Information Found In The Header Of A Message ? |
|
Answer» The header of a MESSAGE contains message identification and ROUTING information. This INCLUDES , but is not limited to : The header of a message contains message identification and routing information. This includes , but is not limited to : |
|
| 144. |
What Is The Difference Between Bytesmessage And Streammessage? |
|
Answer» BytesMessage stores the primitive data types by converting them to their BYTE representation. Thus the message is one CONTIGUOUS stream of bytes. While the StreamMessage maintains a boundary between the different data types stored because it also stores the type information along with the value of the primitive being stored. BytesMessage allows data to be read using any type. Thus EVEN if your payload contains a LONG value, you can invoke a METHOD to read a short and it will return you something. It will not give you a semantically correct data but the call will succeed in reading the first two bytes of data. This is strictly prohibited in the StreamMessage. It maintains the type information of the data being stored and enforces strict conversion rules on the data being read. BytesMessage stores the primitive data types by converting them to their byte representation. Thus the message is one contiguous stream of bytes. While the StreamMessage maintains a boundary between the different data types stored because it also stores the type information along with the value of the primitive being stored. BytesMessage allows data to be read using any type. Thus even if your payload contains a long value, you can invoke a method to read a short and it will return you something. It will not give you a semantically correct data but the call will succeed in reading the first two bytes of data. This is strictly prohibited in the StreamMessage. It maintains the type information of the data being stored and enforces strict conversion rules on the data being read. |
|
| 145. |
Why Doesn't The Jms Api Provide End-to-end Synchronous Message Delivery And Notification Of Delivery? |
|
Answer» Some messaging systems provide synchronous delivery to destinations as a MECHANISM for implementing RELIABLE applications. Some systems provide clients with various forms of delivery NOTIFICATION so that the clients can detect dropped or ignored messages. This is not the model defined by the JMS API. JMS API messaging provides guaranteed delivery via the once-and-only-once delivery semantics of PERSISTENT messages. In ADDITION, MESSAGE consumers can ensure reliable processing of messages by using either CLIENT_ACKNOWLEDGE mode or transacted sessions. This achieves reliable delivery with minimum synchronization and is the enterprise messaging model most vendors and developers prefer. The JMS API does not define a schema of systems messages (such as delivery notifications). If an application requires acknowledgment of message receipt, it can define an application-level acknowledgment message. Some messaging systems provide synchronous delivery to destinations as a mechanism for implementing reliable applications. Some systems provide clients with various forms of delivery notification so that the clients can detect dropped or ignored messages. This is not the model defined by the JMS API. JMS API messaging provides guaranteed delivery via the once-and-only-once delivery semantics of PERSISTENT messages. In addition, message consumers can ensure reliable processing of messages by using either CLIENT_ACKNOWLEDGE mode or transacted sessions. This achieves reliable delivery with minimum synchronization and is the enterprise messaging model most vendors and developers prefer. The JMS API does not define a schema of systems messages (such as delivery notifications). If an application requires acknowledgment of message receipt, it can define an application-level acknowledgment message. |
|
| 146. |
What Are The Various Message Types Supported By Jms? |
|
Answer» Stream MESSAGES -- Group of Java Primitives Stream Messages -- Group of Java Primitives |
|
| 147. |
What Is A Good Directory Structure For Main Code And Junit Test Code? |
|
Answer» DEV Dev |
|
| 148. |
How To Let Auto-detect Platform And Use Platform Specific Properties? |
|
Answer» Tell you a GREAT trick, it WORKS excellent. Tell you a great trick, it works excellent. |
|
| 149. |
Can I Change/override Ant Properties When I Use Ant-contrib Foreach Task? |
|
Answer» <FOREACH> is actually USING a DIFFERENT property space, you can pass any property name/value pair to it. Just use <PARAM> nested tag INSIDE foreach <foreach> is actually using a different property space, you can pass any property name/value pair to it. Just use <param> nested tag inside foreach |
|
| 150. |
How To Do Conditional Statement In Ant? |
|
Answer» There are many ways to solve the problem.
There are many ways to solve the problem.
|
|