Skip to content

Instantly share code, notes, and snippets.

@dploeger
dploeger / jgroups-tcp.xml
Created August 23, 2016 06:42
JGroups TCP configuration
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8">
<Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"/>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership className="org.apache.catalina.tribes.membership.McastService"
address="228.0.0.4"
@dploeger
dploeger / local.properties
Created August 22, 2016 07:03
local.properties related to clustering
#
# Clustering
#
clustermode=true
cluster.id=0
cluster.maxid=1
cluster.broadcast.methods=jgroups
cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.JGroupsBroadcastMethod
# Local cluster-IP (WARNING! Change on other node!)
cluster.broadcast.method.jgroups.tcp.bind_addr=172.16.1.5
@dploeger
dploeger / gist:f28275ce20f2e8c8922a
Created October 14, 2014 13:33
Calling Zimbra internal auth from a custom auth extension
String encodedPassword = acct.getAttr(Provisioning.A_userPassword);
if (acct instanceof LdapEntry) {
LdapProvisioning prov = (LdapProvisioning) acct.getProvisioning();
prov.zimbraLdapAuthenticate(acct, password, context);
return; // good password, RETURN
@dploeger
dploeger / gist:6898931
Last active December 25, 2015 01:59
Add xsd:dateTime-arguments for SOAP in Ladon:
In ladon/compat.py:
add to first lines:
from datetime import datetime
and in line #24:
type_to_xsd = {
int: 'long',
long: 'long',