use of com.sun.enterprise.deployment.JMSDestinationDefinitionDescriptor in project Payara by payara.
the class ActiveJmsResourceAdapter method getJMSDestination.
/*
* Get JMS destination resource from deployed applications
*/
private JMSDestinationDefinitionDescriptor getJMSDestination(String logicalDestination) {
Domain domain = Globals.get(Domain.class);
Applications applications = domain.getApplications();
for (com.sun.enterprise.config.serverbeans.Application app : applications.getApplications()) {
ApplicationInfo appInfo = appRegistry.get(app.getName());
if (appInfo != null) {
Application application = appInfo.getMetaData(Application.class);
JMSDestinationDefinitionDescriptor destination = getJMSDestination(logicalDestination, application);
if (isValidDestination(destination)) {
return destination;
}
}
}
return null;
}
use of com.sun.enterprise.deployment.JMSDestinationDefinitionDescriptor in project Payara by payara.
the class ActiveJmsResourceAdapter method getJMSDestination.
/*
* Get JMS destination resource from ejb module
*/
private JMSDestinationDefinitionDescriptor getJMSDestination(String logicalDestination, EjbBundleDescriptor ejbBundleDescriptor) {
JMSDestinationDefinitionDescriptor destination = getJMSDestination(logicalDestination, ejbBundleDescriptor.getResourceDescriptors(JavaEEResourceType.JMSDD));
if (isValidDestination(destination)) {
return destination;
}
Set<EjbDescriptor> ejbDescriptors = (Set<EjbDescriptor>) ejbBundleDescriptor.getEjbs();
for (EjbDescriptor ejbDescriptor : ejbDescriptors) {
destination = getJMSDestination(logicalDestination, ejbDescriptor.getResourceDescriptors(JavaEEResourceType.JMSDD));
if (isValidDestination(destination)) {
return destination;
}
}
return null;
}
Aggregations