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){
resources = appInfo.getTransientAppMetaData(app.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();