For geronimo, in SharkClient.conf file (located in <shark_install_dir>/tws/conf directory), the following parameters should be set to the following values:
#============================================================================ # Section related to client applications #============================================================================ # some applications can work with shark deployed as POJO or as EJB # for such applications, default client type is POJO ClientType=EJB_GERONIMO # defines user transaction timeout (max time that transaction can last before automatically # beeing rolled back). Default is 300 sec UserTransaction.Timeout=300 # if application works with EJB shark, the name for initial context factory should be # specified. Default is name for the JBoss deployment. java.naming.factory.initial=org.openejb.client.RemoteInitialContextFactory # if application works with EJB shark, the URL prefix for packages should be # specified. Default is name for the JBoss deployment. java.naming.factory.url.pkgs=org.apache.geronimo.naming # if application works with EJB shark, the URL of service provider should be # specified. Default is name for the JBoss deployment on the local machine. java.naming.provider.url=localhost:4201 # if application works with EJB shark, only for geronimo these two parameters # should be defined (default principal is system and credential manager) java.naming.security.principal=system java.naming.security.credentials=manager
Beside geronimo's jar files that are already added in shark, geronimo-j2ee_1.4_spec-1.1.jar file (located in <geronimo_root>/repository/org/apache/geronimo/specs/geronimo-j2ee_1.4_spec/1.1 directory) must be copied to <shark_install_dir>/tws/lib/contrib directory.