Affects Version/s: None
Fix Version/s: None
GF 188.8.131.52 Multi-clustered domain.
1. Create a 2 cluster domain
2. Deploy a custom resource adapter to cluster1.
3. Deploy an application containing an EJB with a @Resource annotation to the cluster2 and an NPE is thrown when evaluating the appInfo.getMetaData expression:
from the following method:
The code assumes that the appInfo is available on all clusters but this does not appear to be the case for cluster where the custom RA is deployed.
My work around has been to deploy the custom RA to target all clusters in the domain so that the required info is available to prevent the NPE from arising. An alternative is to put a null-check is the condition but I was not sure if this should be fixed further up stack, or if there would be side-effects to doing so.