Build the SA project to generate the package file that will be deployed to the cluster. Make sure that all of the Java CAPS JBI components included in the Service Assembly have been added to the target cluster and are in the started state. If any components have not been added to the cluster, the deployment will fail. You should also know the location of the Service Assembly package file.
In the left navigation bar on the GlassFish Admin Console, expand JBI and select Service Assemblies.
Click Deploy.
Select the SA package file in either the File to Upload or File to Copy field, depending on the location of the file.
Click Next.
By the Status field, select Enabled.
In the Add to Available Targets List, select the cluster.
Click Finish.
You can also deploy the SA using the following commands, run from the GlassFish_home\bin directory:
asadmin deploy-jbi-service-assembly --target cluster_name SA_file
asadmin start --target cluster_name SA_file
where cluster_name is the name of the GlassFish cluster and SA_file is the path and file name for the SA package file.
When an SA is deployed to a cluster, make sure to only deploy and undeploy the SE from the Admin Console or the command line. You cannot perform these tasks from NetBeans. Disable the SA before you undeploy it.