SimpleEjbManager

    This is a demonstration of a simple, but useful, application that you can build with JMX4ODP. Given the parameters to locate a deployed EJB, the SimpleEjbManager will dynamically generate a ModelMBean to proxy request to get/set attributes and invoke functions on the remote EJB. The SimpleEjbManager will make this all available via web forms using the HTTP adaptor.

    java org.jmx4odp.dynamicManagent.SimpleEjbManager (http adaptor port) (provider url) (jndi name) (remote interface class name)

    If you have not altered the j4o_html_port setting in the properties file, then after starting the SimpleEjbManager you should just be able to open a web browser to:
    http://localhost:7000

    Now you can access the remote EJB. For example, you may include getXXX() functions to allow you to get an snapshot into what your system is doing, like:

      int getRequestsProcessedToday();
      boolean getAbleToAccessDatabase();
      String getLastModifiedBy();

    Or you might enable setXXX(xxx x) methods so that configuration values can be set without having to bounce the system to reload .property files:

      void setObjectPoolize(int i);
      void setLoggingToVerbose(boolean b);

    Using the SimpleEjbManager makes it trivial to get simple access to EJB's without having to write a special client for each EJB that can access each function/attribute that you want to remotly set or monitor. This can all be done dynamically, as needed.