Search in sources :

Example 1 with ServiceTag

use of com.sun.enterprise.registration.impl.ServiceTag in project Payara by payara.

the class RegistrationUtil method getGFInstanceURN.

public static String getGFInstanceURN() throws RegistrationException {
    SysnetRegistrationService srs = new SysnetRegistrationService(getServiceTagRegistry());
    List<ServiceTag> st = srs.getRegistrationDescriptors(getGFProductURN());
    if (st.isEmpty()) {
        throw new RegistrationException("Instance URN for " + getGFProductURN() + // i18n
        " not found");
    }
    return st.get(0).getInstanceURN();
}
Also used : RegistrationException(com.sun.enterprise.registration.RegistrationException) ServiceTag(com.sun.enterprise.registration.impl.ServiceTag) SysnetRegistrationService(com.sun.enterprise.registration.impl.SysnetRegistrationService)

Aggregations

RegistrationException (com.sun.enterprise.registration.RegistrationException)1 ServiceTag (com.sun.enterprise.registration.impl.ServiceTag)1 SysnetRegistrationService (com.sun.enterprise.registration.impl.SysnetRegistrationService)1