Example 2

In a GET map function call enter:


=GET("JNDI",
     "-T+  myfile.mtr  
      -ICTXF com.sun.jndi.rmi.registry.RegistryContextFactory
      -ICTXFURL rmi:// localhost:2500 ", PACKAGE( MyPackage ))

This GET map function call will:

  • enable a trace file called myfile.mtr in append mode
  • load the InitialContextFactory com.sun.jndi.rmi.registry.RegistryContextFactory
  • connect to the RMI server running on the local machine on port 2500
  • perform the JNDI operations that have been defined in Output Card MyPackage