You could simply this and always just map by prefix as any ticket will have the prefix readily available. You'll just need to make sure that if any additional prefixes are added to the server then the map is updated.
Otherwise, it looks good! -Scott On Nov 20, 2007 2:53 AM, Julien Marchal <[EMAIL PROTECTED]> wrote: > Thanks Scott, > What do you think about this implementation ? > Is there different ticket excepted ServiceTicketImpl (ST-) and > TicketGrantingTicketImpl (TGT-) ? > > <bean id="ticketRegistry" class=" > org.jasig.cas.ticket.registry.SelectTicketRegistry"> > <property name="ticketRegistrySelectorByObject"> > <map> > <entry key="org.jasig.cas.ticket.ServiceTicketImpl" > value-ref="ticketRegistryMemory"/> > <entry key="org.jasig.cas.ticket.TicketGrantingTicketImpl" > value-ref="ticketRegistryBDB"/> > </map> > </property> > <property name="ticketRegistrySelectorByPrefix"> > <map> > <entry key="ST-" value-ref="ticketRegistryMemory"/> > <entry key="TGT-" value-ref="ticketRegistryBDB"/> > </map> > </property> > </bean> > <bean id="ticketRegistryMemory" class=" > org.jasig.cas.ticket.registry.DefaultTicketRegistry" /> > <bean id="ticketRegistryBDB" class=" > org.jasig.cas.ticket.registry.BerkeleyDbTicketRegistry" > > <property name="dbHome" value= > "file:C:/esupdev/CAS3/BDB-ticket"/> > </bean> > > I must have to map (ticketRegistrySelectorByObject, > ticketRegistrySelectorByPrefix) to defined which registry to use because > ticket can be find by prefix (ST, TGT) or by object type. > > Thanks a lot for help. > > Best regards. > > Scott Battaglia a écrit : > > Julien, > > We don't offer a way to do that out of the box. You could easily write a > "DelegatingTicketRegistry" which implements the TicketRegistry interface and > depending on the Ticket saved delegates to the appropriate type. > > -Scott > > > On Nov 19, 2007 8:17 AM, Julien Marchal <[EMAIL PROTECTED]> > wrote: > > > Hi all, > > We want to use BerkeleyDbTicketRegistry but we are littel affraid to > > acces to the berkley file for each ticket type. > > Is there a way to store "ServiceTicket" in memory > > (DefaultTicketRegistry) and long ticket "TicketGrantingTicket" in > > BerkeleyDbTicketRegistry. > > > > If it's not possible, are you interessted if we make a > > contribibution to make it ? > > > > Best regards, > > > > > > > > -- > > [image: > Université Nancy 2] <http://www.univ-nancy2.fr/> Pôle > > Lorrain de Gestion > > 13 rue du Maréchal Ney > > CO 30075 > > 54036 NANCY Cedex > > [image: > Téléphone] 03.54.50.36.54 [image: > Fax] 03.54.50.36.51 > > Julien > > Marchal Equipe réseau - CRI > > > > _______________________________________________ > > Yale CAS mailing list > > [email protected] > > http://tp.its.yale.edu/mailman/listinfo/cas > > > > > > > -- > -Scott Battaglia > > LinkedIn: http://www.linkedin.com/in/scottbattaglia > > ------------------------------ > > _______________________________________________ > Yale CAS mailing [EMAIL PROTECTED]://tp.its.yale.edu/mailman/listinfo/cas > > > > -- > [image: > Université Nancy 2] <http://www.univ-nancy2.fr/> Pôle > Lorrain de Gestion > 13 rue du Maréchal Ney > CO 30075 > 54036 NANCY Cedex > [image: > Téléphone] 03.54.50.36.54 [image: > Fax] 03.54.50.36.51 Julien > Marchal Equipe réseau - CRI > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas > > -- -Scott Battaglia LinkedIn: http://www.linkedin.com/in/scottbattaglia
<<nu_nancy2.png>>
<<tel.png>>
<<fax.png>>
<<image/png>>
<<image/png>>
<<image/png>>
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
