> -----Original Message-----
> From: Jesse Banning [mailto:[email protected]]
> Sent: Wednesday, August 7, 2013 3:28 PM
> To: [email protected]
> Subject: Re: [cas-user] MemcacheTicketRegistry documentation question
> 
> Hi Aaron,
> 
> The wiki code excerpt for 3.5+ is what we have working for CAS 3.5.1 in our
> ../src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml
> 
> There are also a few variables which we set in cas.properties.  E.G:
> 
> memcached.servers=localhost:11211
> memcached.protocol=BINARY
> memcached.locatorType=CONSISTENT
> memcached.failureMode=Retry
> expiration.policy.tgt.validity_period=${tgt.maxTimeToLiveInSeconds}
> expiration.policy.st.validity_period=${st.timeToKillInSeconds}
> 
> I don't see the changes to cas.properties mentioned on the wiki page, so
> maybe that's the issue.  If not, hopefully someone who actually understands
> that error message will chime in.

Thanks Jesse -- 

I have the cas.properties as well.  Did you just drop that right into 
ticketRegistry.xml?  Here's my complete ticketRegistry.xml for comparison:


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p";
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd";>
    <description>
        Configuration for the MemCacheTicketRegistry.
    </description>
       
  <!-- Ticket Registry -->
<bean id="ticketRegistry" 
class="org.jasig.cas.ticket.registry.MemCacheTicketRegistry">
  <constructor-arg index="0" ref="memcachedClient" />
  
  <!-- TGT timeout in seconds -->
  <constructor-arg index="1" value="${expiration.policy.tgt.validity_period}" />
 
  <!-- ST timeout in seconds -->
  <constructor-arg index="2" value="${expiration.policy.st.validity_period}" />
</bean>
 
<!--
       NOTE: Changing the transcoder implementation is not required, but Kryo 
provides for more
       efficient serialization which significantly improves throughput and 
storage footprint.
       See http://code.google.com/p/spymemcached/wiki/SpringIntegration for 
more info on options
       for various property values.
     -->
<bean id="memcachedClient" 
class="net.spy.memcached.spring.MemcachedClientFactoryBean"
      p:servers="${memcached.servers}"
      p:protocol="${memcached.protocol}"
      p:locatorType="${memcached.locatorType}"
      p:failureMode="${memcached.failureMode}"
      p:transcoder-ref="kryoTranscoder">
  <property name="hashAlg">
    <util:constant 
static-field="net.spy.memcached.DefaultHashAlgorithm.${memcached.hashAlgorithm}"
 />
  </property>
</bean>
<bean id="kryoTranscoder"
      class="org.jasig.cas.ticket.registry.support.kryo.KryoTranscoder"
      init-method="initialize">
  <!-- initialBufferSize -->
  <constructor-arg index="0" value="8192" />
</bean> 
</beans>

Best,

Aaron


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to