// set the method params on the named method metadata
namedMethod.setMethodParams(methodParams);
}
// get the concurrency method metadata for this named method
ConcurrentMethodMetaData concurrentMethodMetaData = sessionBean.getConcurrentMethods().get(namedMethod);
AccessTimeoutMetaData accessTimeoutMetaData = null;
// if this named method did not have concurrency metadata or access timeout metadata, then
// check for the method named "*" and see if that has the access timeout set
if (concurrentMethodMetaData == null || concurrentMethodMetaData.getAccessTimeout() == null)
{
// get access timeout for method "*"
accessTimeoutMetaData = getAccessTimeoutApplicableForAllMethods(sessionBean);
}
// access timeout was not specified for this method nor for the
// method "*"
if (accessTimeoutMetaData == null)
{
return null;
}
AccessTimeout accessTimeout = new AccessTimeoutImpl(accessTimeoutMetaData.getTimeout(), accessTimeoutMetaData
.getUnit());
return annotationClass.cast(accessTimeout);
}