C
C
click_f2017-07-25 19:23:54
Java
click_f, 2017-07-25 19:23:54

When might JNDI be required?

Everything seems clear with the definition, but it is not clear in what cases this may be required.
How to understand that in a situation you need to use JNDI?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
protven, 2017-07-25
@click_f

In short, usually when you have some kind of application server, you create all sorts of resources there (data-source, jms, etc) using the server itself, and not inside your application. And the application already receives a reference to the resource from JNDI by the name of the resource.

N
Nikolay Baranenko, 2017-08-11
@drno-reg

JNDI is an excellent functionality that can independently resolve the relationship of your application, let's say with a DBMS server, etc. Even the Apache Tomcat WEB container has this functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question