String j2eeType = null;
int i = 0;
// Assign memory for inbound and outbound vars
InboundResourceAdapter ibRA = bd.getInboundResourceAdapter();
OutboundResourceAdapter obRA = bd.getOutboundResourceAdapter();
int kount = 0;
if (ibRA != null) { kount = kount + 1; }
if (obRA != null) { kount = kount + 1; }
if (kount > 0) {sArr = new String[kount];}
// Inbound
if (ibRA != null) {
j2eeType = "ResourceAdapter";
sArr[i] = ("j2eeType=" + j2eeType + "," +
"name=" + ibRA.getName() + "," +
"ResourceAdapterModule=" + moduleName + "," +
"J2EEApplication=" + applicationName);
i++;
}
// OutBound
if (obRA != null) {
j2eeType = "ResourceAdapter";
sArr[i] = ("j2eeType=" + j2eeType + "," +
"name=" + obRA.getName() + "," +
"ResourceAdapterModule=" + moduleName + "," +
"J2EEApplication=" + applicationName);
i++;
}