Table of Contents
Shark swing admin application can work with shark enterprise beans. To achieve this, some parameters must be set in SharkClient.conf file, located in <shark_install_dir>/conf directory.
This chapter explains this settings for different EJB containers.
After setting these parameters, start and work with shark admin is the same as in the POJO case.
For JOnAS, in SharkClient.conf file (located in <shark_install_dir>/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 # 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 user transaction lookup should be # defined. Default is name for the JBoss deployment. XaUserTransactionLookupName=javax.transaction.UserTransaction # 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.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory # 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.objectweb.jonas.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=rmi://localhost:1099
The JOnAS jar file client.jar (located in <jonas_root>/lib directory) must be copied to <shark_install_dir>/lib/contrib directory. Also, after EAR deployment in JOnAS, in <shark_install_dir>/lib directory should be added sharkejb.jar with generated stubs and skeletons from JOnAS. This jar is located in <jonas_root>/work/apps/jonas/sharkejb_<latest_date>-<latest_time> directory.