A service locator, JAVA Programming

 

J2EE prepares use of the JNDI interface to access different resources like JMS, JDBC, EJB etc. The client finds up for these resources through the JNDI look-up. The JNDI look like is expensive because the client requires getting a network connection to the server first. So that look-up process is redundant and expensive.

 To avoid this redundant and expensive process, service objects may be cached when a client process the JNDI look-up for the first time and redefine that service object from the cache for the subsequent look-ups. The service locator pattern imports this technique.

 

830_Service Locator.png

Posted Date: 7/27/2012 4:36:26 AM | Location : United States







Related Discussions:- A service locator, Assignment Help, Ask Question on A service locator, Get Answer, Expert's Help, A service locator Discussions

Write discussion on A service locator
Your posts are moderated
Related Questions
The roster lets you keep track of the availability ("presence") of other users. A roster also allows you to organize users into groups such as "Friends" and "Co-workers". Other IM

Explain Subclasses and Polymorphism ? Car and Motorcycle are subclasses of MotorVehicle. If you instantiate a Car or a Motorcycle along with new, you can use in which object a

Java Message Service: An interface executed by most J2EE containers to give point-to-point queueing and topic (publish/subscribe) behavior. JMS is frequently used by EJB's that req

What is image processing? It field of computer whereas we enhance and manipulate the graphics. Like it is used to recover old photograph and through processing we can revive

JMS is asynchronous in nature. Therefore not all the pieces need to be up all the time for the application to function as a whole. Even if the receiver is down the MOM will kept th

Is it possible to create any dialog window in Oracle in Java stored procedure?


API consumer -This application should consume a third party API -You should use more than just one method of the API, I'd like to see at least 3 or 4 -Have some concept

program to find the frequency of a digit in a number

Prompt the user for an int between an upper and lower boundary. Reuse the validateInput() method from project 2 to validate if the input is in bounds. If it is not, print an error