modifySCAImportEJBBinding command

Use the modifySCAImportEJBBinding command to modify the attributes of an Enterprise JavaBeans (EJB) import binding.

After using the command, save your changes to the master configuration using one of the following commands:
  • For Jython:
    AdminConfig.save()
  • For Jacl:
    $AdminConfig save

Prerequisites

You can run the command in either local mode or connected mode:
  • In local mode, specify the wsadmin -conntype none option.
  • To run in connected mode, you must connect as a cell administrator that is assigned the CellAdmin role, or a deployment environment administrator that is assigned the DEAdmin role.

Location

Start the wsadmin scripting client from the install_root/profiles/deployment_manager_profile/bin directory.

Syntax

  • Using Jython:
    AdminTask.modifySCAImportEJBBinding('-moduleName module_name -import import_name -jndiName jndi_name [-applicationName application_name]')
  • Using Jacl:
    $AdminTask modifySCAImportEJBBinding {-moduleName module_name -import import_name -jndiName jndi_name [-applicationName application_name]}

Required parameters

-moduleName module_name
The name of the module associated with the import.
-import import_name
The name of the import.
-jndiName jndi_name
The modified property JNDI name of the import binding.

Optional parameters

-applicationName application_name
The name of the application connecting to the import.

Example

The following example uses the modifySCAImportEJBBinding command to modify the attributes of the EJB import binding for a module called MyMod and an import called Import1.

  • Jython example:
    AdminTask.modifySCAImportEJBBinding('[-moduleName MyMod 
    -import Import1 -jndiName newjndiName]')
  • Jacl example:
    $AdminTask modifySCAImportEJBBinding {-moduleName MyMod 
    -import Import1 -jndiName newjndiName}