def create_simple_binding(jboss_config, binding_name, value, profile=None):
 log.debug('======================== MODULE FUNCTION: jboss7.create_simple_binding, binding_name=%s, value=%s, profile=%s', binding_name, value, profile)
 operation = '/subsystem=naming/binding="{binding_name}":add(binding-type=simple, value="{value}")'.format(binding_name=binding_name, value=__escape_binding_value(value))
 if (profile is not None):
  operation = ('/profile="{profile}"'.format(profile=profile) + operation)
 return __salt__['jboss7_cli.run_operation'](jboss_config, operation)

def create_simple_binding ( jboss_config , binding_name , value , profile = None ) : log . debug ( '======================== MODULE FUNCTION: jboss7.create_simple_binding, binding_name=%s, value=%s, profile=%s' , binding_name , value , profile ) operation = '/subsystem=naming/binding="{binding_name}":add(binding-type=simple, value="{value}")' . format ( binding_name = binding_name , value = __escape_binding_value ( value ) ) if ( profile is not None ) : operation = ( '/profile="{profile}"' . format ( profile = profile ) + operation ) return __salt__ [ 'jboss7_cli.run_operation' ] ( jboss_config , operation )
create a simple jndi binding in the running jboss instance jboss_config configuration dictionary with properties specified above .