ResourceAdapterMdlpublic class ResourceAdapterMdl extends J2EEManagedObjectMdl
Fields Summary |
---|
private static String | MANAGED_OBJECT_TYPE | private String | raModuleName | private String | applicationName | private String | resourceAdapterName |
Constructors Summary |
---|
public ResourceAdapterMdl(String name, String rarName, String appName)
super(name, false, false, false);
raModuleName = rarName;
if(appName != null){
this.applicationName = appName;
if(J2EEModuleMdl.isStandAloneModule(applicationName))
this.applicationName = "null";
}
else {
//standalone
this.applicationName = "null";
}
resourceAdapterName = name;
| public ResourceAdapterMdl(String name, String rarName, String appName, String serverName)
super(name, serverName, false, false, false);
raModuleName = rarName;
if(appName != null){
this.applicationName = appName;
if(J2EEModuleMdl.isStandAloneModule(applicationName))
this.applicationName = "null";
}
else {
//standalone
this.applicationName = "null";
}
resourceAdapterName = name;
|
Methods Summary |
---|
public java.lang.String | getJ2EEApplication()Accessor method for the parent key
return this.applicationName;
| public java.lang.String | getResourceAdapterModule()Accessor method for the parent key
return raModuleName;
| public java.lang.String | getj2eeType()The type of the J2EEManagedObject as specified by JSR77. The class that implements a specific type must override this method and return the appropriate type string.
return MANAGED_OBJECT_TYPE;
| public java.lang.String | getjcaResource()returns the OBJECT_NAME of the JCAResource implemented by this resource adapter
Set s = findNames("j2eeType=JCAResource,ResourceAdapter="+this.resourceAdapterName+",J2EEServer="+this.getJ2EEServer());
Object [] objs = s.toArray();
if (objs.length > 0) {
String name = ((ObjectName)objs[0]).toString();
return name;
} else {
return null;
}
|
|