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
You are required to design & implement online food delivery system using Java RMI technology. This involves writing both the server and the client program(s). Client programs can u

Design a logic circuit to convert Gray code to Binary code and draw the logic circuit.

Question: (a) Describe what is meant by a ‘constructor' in Java. Use a simple example to illustrate your answer. (b) Differentiate between a class method and an instance me

I need to code using java in netbeans for my dissertation which is in data mining domain...deals with privacy preserving of sensitive rules or items using association rule hiding

An object that having the data being transferred among JMS clients.

What is a local, member and a class variable? Variables declared within a method are "local" variables. Variables declared within the class i.e not within any methods are "m

Differentiation between a Vector and an array . Explain in Brief about the pros and cons of both?

What are the different messaging paradigms JMS supports? Ans) Publish and Subscribe i.e. pub/suc and Point to Point i.e. p2p.