Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

This is necessary to allow the SPECjAppServer2004 Driver to remotely access the EJBs deployed in Geronimo.

Code Block
xml
xml
borderStylesolidxml
<module name="geronimo/openejb/1.1/car">
  <gbean name="EJBNetworkService">
    <attribute name="host">0.0.0.0</attribute>
    <attribute name="port">4201</attribute>
    <attribute name="allowHosts">0.0.0.0</attribute>
  </gbean>
</module>

If your geronimo.host and your driver.host are the same machine, you have to adjust the port number of the Geronimo RMI Registry (to e. g. 1199), otherwise it would conflict with the SPECjAppServer2004 Driver that uses the default port of 1099:

Code Block
xml
xml
borderStylesolidxml
<module name="geronimo/rmi-naming/1.1/car">
  <gbean name="RMIRegistry">
    <attribute name="port">1199</attribute>
  </gbean>
  <gbean name="NamingProperties">
    <attribute name="namingProviderUrl">rmi://0.0.0.0:1199</attribute>
  </gbean>
  ... 
  <gbean name="JMXService">
    <attribute name="protocol">rmi</attribute>
    <attribute name="host">0.0.0.0</attribute>
    <attribute name="port">9999</attribute>
    <attribute name="urlPath">/jndi/rmi://0.0.0.0:1199/JMXConnector</attribute>
  </gbean>
</module>

...