if(appInfo != null){
com.sun.enterprise.config.serverbeans.Application app =
appInfo.getTransientAppMetaData(com.sun.enterprise.config.serverbeans.ServerTags.APPLICATION,
com.sun.enterprise.config.serverbeans.Application.class);
Resources resources = null;
if(app != null){
Module module = null;
List<Module> modules = app.getModule();
for(Module m : modules){
if(ConnectorsUtil.getActualModuleName(m.getName()).equals(moduleName)){
module = m;
break;
}
}
if(module != null){
resources = appInfo.getTransientAppMetaData(module.getName()+"-resources", Resources.class);
}
}
if(resources != null){
boolean bindableResource = BindableResource.class.isAssignableFrom(type);
boolean poolResource = ResourcePool.class.isAssignableFrom(type);
boolean workSecurityMap = WorkSecurityMap.class.isAssignableFrom(type);
boolean rac = ResourceAdapterConfig.class.isAssignableFrom(type);
Iterator itr = resources.getResources().iterator();
while(itr.hasNext()){
String resourceName = null;
Resource res = (Resource)itr.next();
if(bindableResource && res instanceof BindableResource){
resourceName = ((BindableResource)res).getJndiName();