{
// begin a new transaction
txn.begin(connection);
// insert a few new publishers
Publisher publisher = new Publisher();
publisher.setPublisherID("bcrosby");
publisher.setName("Bing Crosby");
publisher.setEmailAddress("bcrosby@juddi.org");
publisher.setAdmin(false);
publisher.setEnabled(false);
PublisherTable.insert(publisher,connection);
// select each inserted publisher
System.out.println(PublisherTable.select("bcrosby",connection));
publisher.setName("Barthalomue Crosby");
publisher.setEnabled(true);
PublisherTable.update(publisher,connection);
// select each inserted publisher
System.out.println(PublisherTable.select("bcrosby",connection));