Thinking for the future... (clustering, etc.)
When using multiple servers and one JNDI server, that
makes your JNDI server a single point of failure
(ejb's will just fail if they can't do lookups any
more)

I know there was some talk of JINI or some kind of
broadcast protocol talk on the list before.  Seems
like this would be a slick way of doing it.  For
example, when a new jBoss server comes up, it
broadcasts and checks to see if there are any other
JNDI servers available.  If so, it just binds to that
server for JNDI services.  Otherwise, it brings up
it's own JNDI server, and listens for broadcasts from
any new slave servers that might come up? 
Alternatively, when a slave server fails on a JNDI
lookup, it could try rebroadcasting to find another
JNDI server that might have come up, or start it's own
(in case the master JNDI fails).

Thoughts?

-Jason



--- Rickard Öberg <[EMAIL PROTECTED]> wrote:
> Hey
> 
> marc fleury wrote:
> > |If so how do I configure this? On machines A and
> B I tried setting the
> > |provider in jndi.properties to machine C but then
> at startup I get:
> > |
> > |[JMX RMI Adaptor]
> javax.naming.NameAlreadyBoundException
> > 
> > This is something else, the JMX adaptor from
> MadAndy tries to do something
> > funky for now.
> 
> Well, it's not that funky, it's just trying to
> register in JNDI which is
> normal. With one JNDI for several servers this will
> happen.
> 
> > One way is to disable it in the conf files,
> comment it's MLETs on the slave
> > servers.
> 
> Works, but is not a long-term solution.
> 
> Here's an idea:
> we could add an entry to the jBoss container
> configuration called "JNDI
> prefix". Usually it would be "" (i.e. use localhost
> with no prefix), but
> for cases like this one could set it to for example
> "jnp://myhost/myapp/". So, when the container bind
> the JNDI names it
> would use this prefix. That would solve this pretty
> well I think.
> 
> Comments/votes?
> 
> /Rickard
> 
> -- 
> Rickard Öberg
> 
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
> 
> 
> --
>
--------------------------------------------------------------
> To subscribe:       
> [EMAIL PROTECTED]
> To unsubscribe:     
> [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to