Checking the results of deployment
After you deploy a BAR file, you can check that the operation completed successfully.
About this task
If version or custom keyword information was included in the resources, you can also check the version of the resources that are deployed to your integration server; see Viewing version information and custom keyword values in your deployed solutions.
You can also view the active layout and view the endpoints of a deployed message flow. For more information, see Viewing the active flow layout of a deployed message flow in the IBM App Connect Enterprise Toolkit and Viewing endpoints.
Checking deployment by using the IBM App Connect Enterprise Toolkit
About this task
Follow these steps to check a deployment by using the IBM App Connect Enterprise Toolkit:
Procedure
Results
Checking deployment by using the mqsideploy command
About this task
mqsideploy INODE -e default -a my.bar
The
following response indicates that the deployment was successful:
BIP1039I: Deploying BAR file 'my.bar' to integration node 'INODE' (integration
server 'default') ...
BIP1092I: The integration node successfully processed the deployment request.
The command also returns a numeric completion code value to indicate the outcome. If the deployment completes successfully, the command returns 0. For more information about other values that you might see returned, see mqsideploy command.
Checking deployment by using the IBM Integration API
About this task
import com.ibm.integration.admin.model.common.LogEntry;
import com.ibm.integration.admin.model.server.DeployResult;
import com.ibm.integration.admin.proxy.IntegrationAdminException;
import com.ibm.integration.admin.proxy.IntegrationNodeProxy;
import com.ibm.integration.admin.proxy.IntegrationServerProxy;
public class DeployExample {
public static void main(String[] args) {
IntegrationNodeProxy node = new IntegrationNodeProxy("localhost",4414,"","",false);
try {
IntegrationServerProxy server = node.getIntegrationServerByName("server1");
DeployResult result = server.deploy("C:\\temp\\mybarfile.bar");
int deployStatus = server.getLastHttpResponse().getStatusCode();
if (deployStatus >= 400)
{
System.out.println("Http response error: " + deployStatus );
}
else
{ // deploy worked, check for any Log entries
LogEntry[] logEntries = result.getLogEntry();
if (logEntries != null)
{
for (LogEntry logEntry: logEntries)
{
System.out.println("Deploy log entry: "+logEntry.getDetailedText());
}
}
}
} catch (IntegrationAdminException e) {
System.out.println("Error deploying: "+e);
}
}
}
If
the deployment message could not be sent to the integration node, an
IntegrationAdminException
exception is thrown at the time of the deployment. If the
integration node receives the deployment message, log messages for the overall deployment are
displayed, followed by completion codes specific to each integration node that is affected by the
deployment.
Checking deployment to IBM Integration Bus on Cloud
About this task
When you upload BAR files into IBM Integration Bus on Cloud, a list of integrations is created. You can then start and stop those integrations, and view information about them.
To check the status of your integrations on the cloud, complete the following steps.