1 Reply Latest reply on Jul 27, 2012 8:01 AM by Philippe Marschall

    Set generalizeSocketException for JavaSE client

    Philippe Marschall Expert

      We're using JBoss Remoting to call EJBs from a JavaSE client using JNDI. We need to set "generalizeSocketException" to true on the client. The server is JBoss AS 5.1.

       

      All the examples I could find were only for configuring it on the server. Is there a way to configure it on the client?

        • 1. Re: Set generalizeSocketException for JavaSE client
          Philippe Marschall Expert

          In ejb3-connectors-jboss-beans.xml

           

            <bean name="org.jboss.ejb3.RemotingConnector"
              class="org.jboss.remoting.transport.Connector">
          
              <property name="invokerLocator">
          
                <value-factory bean="ServiceBindingManager"
                  method="getStringBinding">
                  <!-- -->
                  <parameter>socket://${jboss.bind.address}:${port}/?generalizeSocketException=true</parameter>
                  <!-- -->
                </value-factory>
          
              </property>
              <!-- -->
            </bean>