Methods Summary |
---|
private JmsService | getJmsService(JmsServiceEvent event)
ConfigContext context = event.getConfigContext();
return ServerBeansFactory.getJmsServiceBean(context);
|
public void | handleCreate(JmsServiceEvent event)Handles element additions.
It is called whenever a JmsServiceEvent is received.
|
public void | handleDelete(JmsServiceEvent event)Handles jms-service element removal.
It is called whenever a JmsServiceEvent is received.
|
public void | handleUpdate(JmsServiceEvent event)Handles jms-service element modification
(attributes/properties values changed).
It is called whenever a JmsServiceEvent is received.
try {
JmsService service = getJmsService(event);
ActiveJmsResourceAdapter ajr = (ActiveJmsResourceAdapter)
registry.getActiveResourceAdapter(ConnectorRuntime.DEFAULT_JMS_ADAPTER);
if (ajr != null) {
ajr.reloadRA(service);
}
JmsService oldService = ServerBeansFactory.getJmsServiceBean(
event.getOldConfigContext());
if(!oldService.getType().equals(service.getType()))
throw new AdminEventListenerException
("jms type is not dynamically configured");
} catch (ConnectorRuntimeException cre) {
AdminEventListenerException ale =
new AdminEventListenerException(cre.getMessage());
ale.initCause(cre);
throw ale;
} catch (Exception ce) {
AdminEventListenerException ale =
new AdminEventListenerException(ce.getMessage());
ale.initCause(ce);
throw ale;
}
|