if (_messagingType != null) {
}
else if (_activationSpec != null) {
String specName = _activationSpec.getClass().getName();
ResourceArchive ra
= ResourceArchiveManager.findResourceArchive(specName);
if (ra == null) {
throw new ConfigException(L.l("'{0}' is an unknown activation-spec. Make sure the JCA adapter is deployed in a .rar file",
specName));
}
try {
_activationSpec.validate();
} catch (Exception e) {
throw error(e);
}
MessageListenerConfig listener = ra.getMessageListener(specName);
_messagingType = listener.getMessageListenerType();
}
else if (MessageListener.class.isAssignableFrom(getEJBClass())) {
_messagingType = MessageListener.class;