Example: Collecting arguments for the AdminControl object
Ensure the arguments parameter is a single string. Each individual argument in the string can contain spaces. Collect each argument that contains spaces in some way.
- An example of how to obtain an MBean follows:
set am [$AdminControl queryNames type=ApplicationManager,process=server1,*]- There are three ways to collect arguments that contain spaces. Choose one of the following alternatives:
- $AdminControl invoke $am startApplication {"JavaMail Sample"}
- $AdminControl invoke $am startApplication {{JavaMail Sample}}
- $AdminControl invoke $am startApplication "\"JavaMail Sample\""