if you are familiar with Java programming and OSGi you can write your own HostnameService. The corresponding interface is com.openexchange.groupware.notify.hostname.Hostnam eService. This interface has a method getHostname(int, int) which gets the user id and the context id as parameter. Based on them you can return a specific hostname.
So a simplified version would look like:
Code:
public final class SampleHostnameService implements HostnameService { public String getHostname(int userId, int contextId) { if (contextId == 1) { return "ox1.example.com"; } else { return "ox2.example.com"; } } }
Regards,
Dennis
Leave a comment: