RAMSession within a policy

In order to construct a RAMSession, we require a URL and user credentials. Is there a way of getting this information from within the Policy, so that the RAMSession is constructed with the same context as the Policy?
Otherwise, is there a default user that can be used, or is it going to be necessary to pass credentials and a URL into the policy?
Otherwise, is there a default user that can be used, or is it going to be necessary to pass credentials and a URL into the policy?
One answer

We are working on getting a RAMSession that is available to a policy (one that bypasses the connection/login to the ram server).
In the meantime, you can use the Policy Configuration to store the uid and password:
In the meantime, you can use the Policy Configuration to store the uid and password:
@Override
public ConfigurationDetails[] getConfigurationDetails(Locale locale) {
if (configDetails == null) {
configDetails = new ConfigurationDetails[] {
new ConfigurationDetails(UID, "User ID", "User ID to use to connect to RAM session", false, false),
new ConfigurationDetails(PASSWD, "Password", "Password to use for RAM session", true, false)
};
}
return configDetails;
}