code: @Override
      public void setConnectionProximity(String newConnectionProximity) throws JMSException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(this, tc, "setConnectionProximity", newConnectionProximity);
  
          // Check for null and empty string, and set to default value if found
          if ((newConnectionProximity == null) || ("".equals(newConnectionProximity))) {
              jcaManagedConnectionFactory.setConnectionProximity(ApiJmsConstants.CONNECTION_PROXIMITY_BUS);
          }
          //ensure that the value is one of the permitted constants - if not throw an exception
          else if ((ApiJmsConstants.CONNECTION_PROXIMITY_BUS.equals(newConnectionProximity))
                   || (ApiJmsConstants.CONNECTION_PROXIMITY_HOST.equals(newConnectionProximity))
                   || (ApiJmsConstants.CONNECTION_PROXIMITY_CLUSTER.equals(newConnectionProximity))
                   || (ApiJmsConstants.CONNECTION_PROXIMITY_SERVER.equals(newConnectionProximity))) {
              jcaManagedConnectionFactory.setConnectionProximity(newConnectionProximity);
          }
          else {
              throw (JMSException) JmsErrorUtils.newThrowable(
                                                              JMSException.class,
                                                              "INVALID_VALUE_CWSIA0261",
                                                              new Object[] { "connectionProximity", newConnectionProximity },
                                                              tc
                              );
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(this, tc, "setConnectionProximity");
      }
docs: Set the connection proximity
  181802.2
  
  @param newConnectionProximity The connection proximity to use
  @see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setConnectionProximity(java.lang.String)