Methods Summary |
---|
private ActiveJmsResourceAdapter | getAdapter()
return (ActiveJmsResourceAdapter)
registry.getActiveResourceAdapter(ConnectorRuntime.DEFAULT_JMS_ADAPTER);
|
private JmsService | getJmsService(JmsHostEvent event)
ConfigContext context = event.getConfigContext();
return ServerBeansFactory.getJmsServiceBean(context);
|
public void | handleCreate(JmsHostEvent event)Handles element additions.
It is called whenever a JmsHostEvent is received.
reloadRA(event);
//getAdapter().addJmsHost(host);
|
public void | handleDelete(JmsHostEvent event)Handles jms-host element removal.
It is called whenever a JmsHostEvent is received.
reloadRA(event);
//getAdapter().deleteJmsHost(host);
|
public void | handleUpdate(JmsHostEvent event)Handles jms-host element modification
(attributes/properties values changed).
It is called whenever a JmsHostEvent is received.
reloadRA(event);
//getAdapter().updateJmsHost(host);
|
private void | reloadRA(JmsHostEvent event)
try {
JmsService service = (JmsService) getJmsService(event);
ActiveJmsResourceAdapter aja = getAdapter();
if (aja != null) {
getAdapter().reloadRA(service);
}
} catch (ConnectorRuntimeException cre) {
AdminEventListenerException ale =
new AdminEventListenerException(cre.getMessage());
ale.initCause(cre);
throw ale;
} catch (ConfigException ce) {
AdminEventListenerException ale =
new AdminEventListenerException(ce.getMessage());
ale.initCause(ce);
throw ale;
}
|