For JBOSS, in SharkClient.conf file (located in <shark_install_dir>/tws/conf directory), the following parameter 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=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.jboss.naming.NamingContextFactory # 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.jboss.naming:org.jnp.interface # 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=jnp://localhost:1099
The parameter ClientType must be set to the value EJB. Other mentioned parameters need not be set, since shark is by default configured that it's client applications work with JBOSS (when ClientType is "EJB").
The JBOSS jar file jbossall-client.jar (located in JBOSS server's client directory) must be copied to <shark_install_dir>/tws/lib/contrib directory.
For shark EAR with beans that can be exposed as web services, the parameter ClientType must be set to the value WS.
ClientType=WS