RMI registery

dannysh
dannysh used Ask the Experts™
on
Hi all
Can RMI registery act as a directory service in addition to a naming service.

can SPI act two roles: naming and directory? or it can be just on of them?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
> Can RMI registery act as a directory service in addition to a naming service.

RMI returns Object, given a name. you can manage your own Directory structure if you want to.

Author

Commented:
Hi heyhey
I found this link:

http://forum.java.sun.com/thread.jsp?forum=51&thread=90955

it says exactly the opposite.
   Danny

Commented:
this is JNDI discussion. what bothers you there ?
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Author

Commented:
Hi heyhey
>this is JNDI discussion. what bothers you there
As I understand, RMI registery is implementation of JNDI which in that case supplies naming services, am I right?

>>. you can manage your own Directory structure if you want to.
what do you mean? can I store object contains attributes as I can do for example in LDAP?
 
  Danny

Commented:
> As I understand, RMI registery is implementation of JNDI which in that case supplies naming services, am I right?

no

RMI is Remote method invocation - i.e. a protocl for calling methods on remote objects.

JNDI works over (using) RMI. JNDI is specification for Directory service - there are various implementations.


you can always create your own Directory service (JNDI or not JNDI compatible).

> can I store object contains attribute

yes, but you will have to code everything yourself.

Author

Commented:
>RMI is Remote method invocation - i.e. a protocl for calling methods on remote objects

I agree that the definition of 'RMI' is a Remote method invocation but how it works? I asked about 'RMI Registery' not RMI, please look at:

http://java.sun.com/products/jndi/tutorial/getStarted/overview/index.html 

Can you tell me please what does the architucture figures means?
   Danny

Commented:
using RMI you can call methods on remote object.

but you need a way to bootstrap in the environment - find that remote object first. that's what rmi registry is designed for. using rmi registry, you can get reference to remote object given 1. machine on which it lives 2. it's name.

Commented:
I will examine the diagram and post another comment later today

Commented:
if I understand the diagram correctly, there is "JNDI service provider" which is wrapper over RMI registry.  
Commented:
yeah, I was correct

"The RMI registry service provider allows JNDI applications to access remote objects registered with the RMI registry."

http://java.sun.com/j2se/1.4.1/docs/guide/jndi/jndi-rmi.html

Commented:
thanks for the points :)

Author

Commented:
u welcome.

Author

Commented:
Hi heyhey

can u help me please with the following question:

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20449885.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial