Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI registry  RSS feed

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

is that rmiregistry a inbuilt JNDI service shipped with java and is that possible to run both the JNDI service through rmiregistry and by running a
web-server like jboss (is it possible to run two JNDI service in a single machine)

looking for your replies
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amirtharaj,

the rmiregistry tool is indeed a simple JNDI service provider. It's probably not as powerful as "real" JNDI services with LDAP backend or something like this but according to Sun it at least offers the JNDI interfaces.

Generally I think there's no problem to run rmiregistry in parallel to JBoss on the same computer. But by default they both use TCP port 1099 for JNDI lookups. So you would have to use another port for at least one of them. With rmiregistry the port to use is simply the first and only command line parameter to it. For JBoss I don't know where to change this. And of course you'll have to change your lookup code in clients to reflect the different port(s)

Marco
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!