Configuring the Client
  • Once the bean has been deployed, clients can start to use it
  • To get to the home objects, the client will typically require some JNDI configuration
    • Example 9 shows the JNDI property file for Enhydra
    • These properties can be:
      • Placed on the classpath
      • Explicitly set as properties via System.setProperty()
    • Note that the client must have a classpath that will allow it to locate the class specified in the java.naming.factory.initial property
    • In the case of Enhydra, this is part of the Enhydra implementation
  • Client may also require certain classes (jar files) from the server depending on how RMI is set up

Next Slide >>