127128129130131132133134
server.invoke(queueName, "removeAllMessages", null, null); server.invoke(serverPeer, "destroyQueue", new Object[] { name }, new String[] { String.class.getName() } ); } catch (Exception e) { throw new NestedRuntimeException(e); } }
150151152153154155156157
server.invoke(topicName, "removeAllMessages", null, null); } catch (Exception e) { e.printStackTrace(); throw new NestedRuntimeException(e); } }
165166167168169170171172
server.invoke(topicName, "removeAllMessages", null, null); server.invoke(serverPeer, "destroyTopic", new Object[] { name }, new String[] { String.class.getName() } ); } catch (Exception e) { throw new NestedRuntimeException(e); } }
178179180181182183184185
MBeanServerConnection server = getServer(); server.invoke(namingService, "createAlias", new Object[] { name, "ConnectionFactory" }, new String[] { String.class.getName(), String.class.getName() } ); } catch (Exception e) { throw new NestedRuntimeException(e); } }
191192193194195196197198
MBeanServerConnection server = getServer(); server.invoke(namingService, "removeAlias", new Object[] { name }, new String[] { String.class.getName() } ); } catch (Exception e) { throw new NestedRuntimeException(e); } }
8182838485868788
Properties props = getProviderProperties(); admin = AdminFactory.getAdmin(props); } catch (Exception e) { throw new NestedRuntimeException("getAdmin() operation failed", e); } }
102103104105106107108109
{ admin.createQueue(name); } catch (Exception e) { throw new NestedRuntimeException("createQueue() operation failed", e); } }
123124125126127128129130
{ admin.deleteQueue(name); } catch (Exception e) { throw new NestedRuntimeException("deleteQueue() operation failed", e); } }
144145146147148149150151
{ admin.createTopic(name); } catch (Exception e) { throw new NestedRuntimeException("createTopic() operation failed", e); } }
{ admin.deleteTopic(name); } catch (Exception e) { throw new NestedRuntimeException("deleteTopic() operation failed", e); } }