0 Replies Latest reply on Aug 19, 2005 1:50 PM by rhasselbaum

    Register singleton with JVM scope

    rhasselbaum

      I'm trying to bind a singleton object using JBoss as the JNDI provider. I want the singleton to be scoped to the JVM only, so all class loaders within the JVM can lookup and retrieve the same instance, but the instance doesn't need to be accessible outside the JVM.

      Based on what I've read, it sounds like I need to bind the object via Reference or Referenceable. But the tutorials I've seen imply that I need to provide an object factory so that JBoss can create new instances. This is exactly what I want to avoid. And I don't really want to use remote objects (RMI) because I don't need remote access.

      Is this possible?

      Thanks.