Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

CICS Java > Code page considerations - Pg. 74

3.2.8 Deleting a container You can delete a container in either of the following two ways: If you have an instance of a container, then you can call the delete() method to delete it. Alternatively, you can call the deleteContainer() method on the channel class. Example 3-23 shows the process to delete containers using both methods. Example 3-23 Deleting containers in a channel Container cont1 = myChannel.createContainer("CONT1"); Container cont2 = myChannel.createContainer("CONT2"); // Add some data cont1.put("Some data"); cont2.put("Some more data"); // Deleting a container using a channel instance myChannel.deleteContainer("CONT1"); // Deleting a container using its container instance cont2.delete();