[cas-dev] JBossTicketRegistry

Jennifer Yang jyoonyang at gmail.com
Wed Oct 25 21:24:27 EDT 2006


Hi Scott,

It's me again.  :-)

Hey, we want to port JBossCacheTicketRegistry for CAS 3.0.  While in
the process, I was doing slight refactoring and wanted to hear your
opinion.

1. Change the constructor of Proxied*Ticket to take
JBossCacheTicketRegistry instead of TreeCache
2. Pulled out the inner classes to be on their own
3. Added
   public void updateRegistry(Ticket ticket) {
       ...
       this.cache.put(JBossCacheTicketRegistry.FQN_TICKET,
ticket.getId(), ticket);
       // might try to distribute the ticket across different nodes to
minimize replication payload
       ...
   }
4. Any Ticket methods that changes Ticket state calls
updateRegistry(), instead of calling cache.put() directly

Do you see any issues with this?

Thanks again!
--Jennifer


More information about the cas-dev mailing list