use of org.apache.openjpa.event.TCPRemoteCommitProvider in project openmeetings by apache.
the class ConfigurationDao method updateClusterAddresses.
public void updateClusterAddresses(String addresses) throws UnknownHostException {
OpenJPAConfiguration cfg = ((OpenJPAEntityManagerSPI) OpenJPAPersistence.cast(em)).getConfiguration();
RemoteCommitProvider prov = cfg.getRemoteCommitEventManager().getRemoteCommitProvider();
if (prov instanceof TCPRemoteCommitProvider) {
((TCPRemoteCommitProvider) prov).setAddresses(addresses);
}
}
Aggregations