does python have any service like jndi?
I wanted to know if python had any service like Java's JNDI.
More specifically, I want a service where providers can register themselves and then consumers can ask fro where certain provider end-points are.
For example, assume that I want to implement a mailbox for all my friends. Each of them have their own end-point, so friend1, friend2, friend3 each have their own end point. Furthermore, each end-point can change over time, so if initially, we start off with:
friend1 -> end-point1
friend2 -> end-point2
friend3 -> end-point3
We may, after some point have:
friend1 -> end-point1
friend2 -> end-point3
friend3 -> end-point4
The serice discovery daemon should willing to accomodate the开发者_如何学JAVAse dynamic changes in the system.
You don't have the exact equivalent, but you can read this study to get an overview of what available. Remember you can always use Jython if you feel like using Python and Java tech together.
In the end, I tend to agree with @msw, JNDI is probably overkill.
精彩评论